---
title: "总结spring下配置dbcp,c3p0,proxool数据源链接池 "
author: "lemo"
date: "2009-09-24T16:10:07Z"
tags: ["HSQLDB", "Hibernate", "JDBC", "MySQL", "Spring"]
slug: "spring-dbcp-c3p0-proxool"
draft: false
lastmod: "2009-09-24T16:11:11Z"
id: 476548
url: "https://lemo.iteye.com/blog/476548"
---

\[code="xml"] datasource ${jdbc.driverClassName} ${jdbc.url} ${jdbc.username} ${jdbc.password} 80 20 3000 c3p0: proxool: jdbc.properties #jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver #jdbc.url=jdbc:jtds:sybase://192.168.1.1:5000/test;charset=eucgb #jdbc.username=yinxiao #jdbc.password=yinxiao #jdbc.driverClassName=org.hsqldb.jdbcDriver #jdbc.url=jdbc:hsqldb:file:hsqldb/test #jdbc.username=sa #jdbc.password= jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/test?user=root&password=root&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 jdbc.username=root jdbc.password=root #jdbc.url=jdbc:mysql://localhost:3306/test?user=root&password=root&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8 #jdbc.driverClassName=net.sourceforge.jtds.jdbc.Driver #jdbc.url=jdbc:jtds:sqlserver://localhost:1433/test;useUnicode=true&characterEncoding=GBK&characterSetResults=GBK #jdbc.username=sa #jdbc.password=sa #jndi jndi.factory.initial=weblogic.jndi.WLInitialContextFactory jndi.provider.url=t3://127.0.0.1:7001 jndi.jndiName=jdbc/test hibernate.properties #hibernate.dialect=org.hibernate.dialect.SQLServerDialect hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect #hibernate.dialect=org.hibernate.dialect.HSQLDialect hibernate.cache.use\_query\_cache=true #hibernate.cache.provider\_class=net.sf.hibernate.cache.EhCacheProvider hibernate.cache.provider\_class=org.hibernate.cache.EhCacheProvider hibernate.show\_sql=true hibernate.format\_sql=false hibernate.transaction.auto\_close\_session=true hibernate.connection.autocommit=false hibernate.connection.isolation=2 hibernate.hbm2ddl.auto=update hibernate.jdbc.fetch\_size=50 hibernate.jdbc.batch\_size=25 hibernate.default\_batch\_fetch\_size=16 hibernate.transaction.factory\_class=org.hibernate.transaction.JDBCTransactionFactory #hibernate.transaction.factory\_class=net.sf.hibernate.transaction.JDBCTransactionFactory hibernate.query.factory\_class=org.hibernate.hql.classic.ClassicQueryTranslatorFactory hibernate.connection.release\_mode=after\_transaction hibernate.cache.region\_prefix=hibernate.cache.test hibernate.default\_schema=test \[/code]