ssh框架中c3p0的配置
<bean id='dataSource'
class='com.mchange.v2.c3p0.ComboPooledDataSource'
destroy-method='close'>
<!-- 指定连接数据库驱动 -->
<property name='driverClass' value='com.mysql.jdbc.Driver' />
<!-- 指定连接数据库url -->
<property name='jdbcUrl' value='jdbc:mysql://localhost/vote_db?characterEncoding=gbk&characterSetResults=gbk' />
<!-- 指定连接数据库用户名,密码为空 -->
<property name='user' value='root' />
<property name='password' value='fbin' />
</bean>