连接池配置文件db.properties

drivers=com.microsoft.sqlserver.jdbc.SQLServerDriver    注册驱动,sqlsever,oracle,mysql啥的都行,随便,前提是相应的jar包要提前引入
logfile=d:\\log.txt    日志文件的位置

 

一下是需要连接的数据库系统,可以同时支持连接多个数据库

customer_system.url=jdbc:sqlserver://192.168.2.252:2433; DatabaseName=customer_system  数据库的url
customer_system.user=sa                   用户名
customer_system.password=SA          密码
customer_system.maxConns=5           最大连接数
customer_system.minConns=1           最小连接数
customer_system.logInterval=60000   监听时长

 

customer_system.url=jdbc:sqlserver://192.168.2.252:2433; DatabaseName=DB_test
customer_system.user=sa
customer_system.password=SA
customer_system.maxConns=6
customer_system.minConns=2
customer_system.logInterval=40000

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7861794/viewspace-697867/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7861794/viewspace-697867/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值