关联Jar包
若通过c3p0访问jdbc,则需要添加以下jar包
1)mchange-commons-java.jar
http://mvnrepository.com/artifact/com.mchange/mchange-commons-java/
2)c3p0-0.9.5.2.jar
http://mvnrepository.com/artifact/com.mchange/c3p0/
3)mysql-connector-java-5.1.22-bin.jar
4)spring-jdbc-4.2.6.RELEASE.jar
配置c3p0.properties
user=root
password=1234
driverClass=com.mysql.jdbc.Driver
jdbcUrl=jdbc:mysql://localhost:3306/high
initialPoolSize=5
maxPoolSize=10
配置jdbcconfig.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:contex