ssh中c3p0连接mysql_ssh 中使用c3p0 的连接池配置 | 学步园
applicationContext.xml 文件:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd">
class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
com.mysql.jdbc.Driver
jdbc:mysql://192.168.3.110:3306/DBName?useUnicode=true&characterEncoding=GBK
root
root
5
30
10
60
5
0
60
30
true
false
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
com/xh/hibernate/vo/User.hbm.xml
org.hibernate.dialect.MySQLDialect
true
true
auto
true
總結
以上是生活随笔為你收集整理的ssh中c3p0连接mysql_ssh 中使用c3p0 的连接池配置 | 学步园的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 北方多省被热哭 南方多地暴雨 6月份怎么
- 下一篇: 长寿神机拜拜!美队埃文斯发文告别iPho