连接池增加 jdbc.pool.keepAlive 参数

This commit is contained in:
thinkgem
2019-11-12 23:30:46 +08:00
parent 9e902cccf1
commit cb2d4f6914
2 changed files with 6 additions and 0 deletions

View File

@@ -40,6 +40,9 @@ jdbc:
# 一个连接在池中最大空闲的时间单位毫秒30分钟4.1.2+
maxEvictableIdleTimeMillis: 1800000
#连接池中的minIdle数量以内的连接空闲时间超过minEvictableIdleTimeMillis则会执行keepAlive操作4.1.8+
keepAlive: false
# 是否自动回收泄露的连接和超时时间单位秒35分钟4.0.6+
removeAbandoned: false
removeAbandonedTimeout: 2100