添加mysql 过期时间和 重连设置
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user