| 1 | {{{ |
---|
| 2 | <?xml version="1.0" encoding="UTF-8"?> |
---|
| 3 | <beans xmlns="http://www.springframework.org/schema/beans" |
---|
| 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
| 5 | xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> |
---|
| 6 | |
---|
| 7 | <!-- 환경설정 기본정보를 globals.properties 에서 참조하도록 propertyConfigurer 설정 --> |
---|
| 8 | <bean id="propertyConfigurer" |
---|
| 9 | class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> |
---|
| 10 | <property name="locations"> |
---|
| 11 | <list> |
---|
| 12 | <value>WEB-INF/db.properties</value> |
---|
| 13 | </list> |
---|
| 14 | </property> |
---|
| 15 | </bean> |
---|
| 16 | |
---|
| 17 | <!-- mysql --> |
---|
| 18 | <bean id="dataSource-mysql" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> |
---|
| 19 | <property name="driverClassName" value="${Globals.DriverClassName}"/> |
---|
| 20 | <property name="url" value="${Globals.Url}" /> |
---|
| 21 | <property name="username" value="${Globals.UserName}"/> |
---|
| 22 | <property name="password" value="${Globals.Password}"/> |
---|
| 23 | </bean> |
---|
| 24 | </beans> |
---|
| 25 | |
---|
| 26 | }}} |