datasource-c3p0.xml
Home
/
sm-core /
src /
main /
resources /
spring /
datasource-c3p0.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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="datasource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
p:driverClass="${db.driverClass}" p:jdbcUrl="${db.jdbcUrl}" p:user="${db.user}"
p:password="${db.password}" p:initialPoolSize="${db.initialPoolSize}"
p:minPoolSize="${db.minPoolSize}" p:maxPoolSize="${db.maxPoolSize}"
p:preferredTestQuery="${db.preferredTestQuery}" p:testConnectionOnCheckin="true"
p:idleConnectionTestPeriod="300" destroy-method="close" />
</beans>