spring dbcp连接池配置 BasicDataSource

阅读更多

 

spring配置




	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		select current date from sysibm.SYSDUMMY1
	
	
	
	
	
	
	

 

jdbc.properties

#db2
jdbc.driverClassName=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2://localhost:50000/dbname
jdbc.username=username
jdbc.password=password

##mysql
#jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://localhost:3306/dbname?useUnicode=true&characterEncoding=utf-8
#jdbc.username=root
#jdbc.password=password

##oracle
#jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@localhost:1521:sid
#jdbc.username=username
#jdbc.password=password

 

DBCP 应用的总结(一)

http://blog.csdn.net/fover717/article/details/8121936

dbcp配置

http://blog.csdn.net/yyf_ad/article/details/17762795

dbcp基本配置和重连配置

http://blog.itpub.net/7971010/viewspace-1114524

 

你可能感兴趣的:(spring,dbcp,连接池,BasicDataSource)