闪灵二人组下拉漫画:ssh 中使用c3p0 的连接池配置

来源:百度文库 编辑:九乡新闻网 时间:2024/10/06 05:54:18
applicationContext.xml 文件:
view plain

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