39 lines
1.9 KiB
XML
39 lines
1.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans
|
|
xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:util="http://www.springframework.org/schema/util"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
|
|
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd">
|
|
|
|
<bean id="egov.propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
<property name="locations">
|
|
<list>
|
|
<value>classpath:/egovframework/egovProps/globals.properties</value>
|
|
<!-- value>file:/product/jeus/egovProps/globals.properties</value-->
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- DataSource -->
|
|
<alias name="dataSource" alias="egov.dataSource" />
|
|
|
|
<!-- MariaDB -->
|
|
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
|
|
<property name="driverClassName" value="${Globals.maria.DriverClassName}"/>
|
|
<property name="url" value="${Globals.maria.Url}" />
|
|
<property name="username" value="${Globals.maria.UserName}"/>
|
|
<property name="password" value="${Globals.maria.Password}"/>
|
|
</bean>
|
|
|
|
<!-- DB Pool이 생성이 되더라고 특정 시간 호출되지 않으면 DBMS 설정에 따라 연결을 끊어질 때
|
|
이 경우 DBCP를 사용하셨다면.. 다음과 같은 설정을 추가하시면 연결을 유지시켜 줍니다. -->
|
|
<!--
|
|
<property name="validationQuery" value="select 1 from dual" />
|
|
<property name="testWhileIdle" value="true" />
|
|
<property name="timeBetweenEvictionRunsMillis" value="60000" /> --> <!-- 1분 -->
|
|
|
|
<!-- DBCP가 아닌 WAS의 DataSource를 사용하시는 경우도 WAS별로 동일한 설정을 하실 수 있습니다.
|
|
(WAS별 구체적인 설정은 WAS document 확인) -->
|
|
</beans>
|