23 lines
1.0 KiB
XML
23 lines
1.0 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:p="http://www.springframework.org/schema/p"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context.xsd">
|
|
<context:property-placeholder location="classpath:spring/config.properties" />
|
|
<bean class="org.springframework.jdbc.core.JdbcTemplate">
|
|
<constructor-arg>
|
|
<bean class="com.alibaba.druid.pool.DruidDataSource"
|
|
init-method="init"
|
|
destroy-method="close"
|
|
p:url="${db.url}"
|
|
p:username="${db.user}"
|
|
p:password="${db.password}"
|
|
p:maxActive="16" />
|
|
</constructor-arg>
|
|
</bean>
|
|
</beans>
|