spring--(22)JdbcTemplate
###1.导入jar包,必须jar包:c3p0、mysql-connector、beans、context、dao、jdbc,截图如下 ###2.db.properties jdbc.user=root jdbc.password=123456 jdbc.driverClass=com.mysql.jdbc.Driver jdbc.jdbcUrl=jdbc:mysql:///test?useUnicode=true&characterEncoding=UTF8 jdbc.initPoolSize=10 jdbc.maxPoolSize=50 ###3.applicationContext.xml <context:property-placeholder location="classpath:db.properties"/> <bean id="dataSources" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="user" value="${jdbc.user}"></property> <property name="password" value="${jdbc.password}"></property> <property name="driverClass" value="$