ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 连接池配置文件db.properties

连接池配置文件db.properties

原创 Linux操作系统 作者:faq_dog 时间:2011-06-14 11:30:27 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/7861794/viewspace-697867/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 连接池调用实例
请登录后发表评论 登录
全部评论

注册时间:2011-06-14

  • 博文量
    11
  • 访问量
    23570