增加一些连接池常用参数,详见 jeesite-core.yml
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user