标签:
<bean id="dbcpDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${jdbc.driverClassName}"/>
<property name="url" value="${jdbc.url}"/>
<property name="username" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
<property name="initialSize" value="${jdbc.init}"/>
<property name="maxActive" value="${jdbc.maxActive}"/>
<property name="maxIdle" value="${jdbc.maxIdle}"/>
</bean>
#mysql数据库用
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/cemscenter?useUnicode=true&characterEncoding=UTF-8
jdbc.username=root
jdbc.password=1203
jdbc.maxActive=30
jdbc.maxIdle=10
jdbc.init=10
标签:
原文地址:http://www.cnblogs.com/LittleDirewolf/p/4941789.html