-
//Reconnection Properties
-
dataSource {
-
properties {
-
maxActive = 30
-
minIdle = 1
-
numTestsPerEvictionRun = 3
-
testOnBorrow = true
-
testWhileIdle = true
-
testOnReturn = true
-
validationQuery = "SELECT 1"
-
minEvictableIdleTimeMillis = ( 1000 * 60 * 5 )
-
timeBetweenEvictionRunsMillis = ( 1000 * 60 * 5 )
-
}
-
}
create a new version of this pasteRAW Paste Data
本文详细介绍了数据库连接池的配置参数,包括最大活动连接数、最小空闲连接数、测试查询语句等,确保数据库连接的有效管理和高效利用。

207

被折叠的 条评论
为什么被折叠?



