|
|
jdbc.mysql.driver=com.mysql.jdbc.Driver
|
|
|
#定义初始连接数
|
|
|
jdbc.mysql.initialSize=0
|
|
|
#定义最大连接数
|
|
|
jdbc.mysql.maxActive=80
|
|
|
#定义最大空闲
|
|
|
jdbc.mysql.maxIdle=60
|
|
|
#定义最小空闲
|
|
|
jdbc.mysql.minIdle=10
|
|
|
#定义最长等待时间
|
|
|
jdbc.mysql.maxWait=10000
|
|
|
|
|
|
jdbc.mysql.testWhileIdle=true
|
|
|
jdbc.mysql.timeBetweenEvictionRunsMillis=2000
|
|
|
jdbc.mysql.validationQuery=select 1
|
|
|
jdbc.mysql.testOnBorrow=true
|
|
|
jdbc.mysql.testOnReturn=true
|
|
|
#读操作是否只在从库
|
|
|
jdbc.mysql.readonlyinslave=false
|
|
|
|
|
|
#yoho_passport读写数据分离
|
|
|
jdbc.mysql.yohopassport.master.url=${jdbc.mysql.yohopassport.master.url}
|
|
|
jdbc.mysql.yohopassport.slave.url=${jdbc.mysql.yohopassport.slave.url}
|
|
|
jdbc.mysql.yohopassport.username=${jdbc.mysql.yohopassport.username}
|
|
|
jdbc.mysql.yohopassport.password=${jdbc.mysql.yohopassport.password} |