Authored by DengXinFei

jdbc配置

... ... @@ -21,7 +21,6 @@
</group>
<script>
<generate template="META-INF/autoconf/jdbc.properties" destfile="WEB-INF/classes/jdbc.properties" />
<generate template="META-INF/autoconf/config.properties" destfile="WEB-INF/classes/config.properties" />
<generate template="META-INF/autoconf/logback.xml" destfile="WEB-INF/classes/logback.xml" />
<generate template="META-INF/autoconf/services.yml" destfile="WEB-INF/classes/services.yml" />
... ...
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}