c3p0配置
<bean id="dataSource" destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}"/>
<property name="jdbcUrl" value="${jdbc.url}"/>
<property name="user" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
<property name="initialPoolSize" value="10"/>
<property name="minPoolSize" value="10"/>
<property name="maxPoolSize" value="50"/>
<property name="checkoutTimeout" value="5000"/>
<property name="maxIdleTime" value="1800"/>
<property name="acquireIncrement" value="3"/>
<property name="idleConnectionTestPeriod" value="60"/>
<property name="maxStatements" value="100"/>
<property name="acquireRetryAttempts" value="30"/>
<property name="breakAfterAcquireFailure" value="false"/>
<property name="autoCommitOnClose" value="false" />
<property name="testConnectionOnCheckout" value="false"/>
</bean>