添加mysql 过期时间和 重连设置

This commit is contained in:
fanghongchao
2018-12-12 15:29:23 +08:00
parent 5ffdc23d61
commit 2bb35b5325
+10 -1
View File
@@ -8,7 +8,16 @@ spring:
max-active: 30 max-active: 30
test-on-borrow: true test-on-borrow: true
initial-size: 3 initial-size: 3
min-idle: 1
max-active: 20
test-on-borrow: true
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
test-while-idle: true
test-on-return: false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
secondary: secondary:
username: ommsxc username: ommsxc
password: ommsxc password: ommsxc