增加一些连接池常用参数,详见 jeesite-core.yml

This commit is contained in:
thinkgem
2018-07-22 14:17:12 +08:00
parent b643b97603
commit 4f8e2ccb4e

View File

@@ -25,6 +25,23 @@ jdbc:
# 最大连接数
maxActive: 20
# 获取连接等待超时时间单位毫秒4.0.6+
maxWait: 60000
# 从池中取出连接前进行检验如果检验失败则从池中去除连接并尝试取出另一个。4.0.6+
testOnBorrow: false
testOnReturn: false
# 间隔多久才进行一次检测检测需要关闭的空闲连接单位毫秒4.0.6+
timeBetweenEvictionRunsMillis: 60000
# 一个连接在池中最小生存的时间单位毫秒4.0.6+
minEvictableIdleTimeMillis: 300000
# 配置是否自动回收超时连接,超时时间,单位秒 4.0.6+
removeAbandoned: true
removeAbandonedTimeout: 1800
# # 多数据源名称列表,启用方式:@MyBatisDao(dataSourceName="ds2")
# dataSourceNames: ds2
#