优化生产环境多数据源报错
This commit is contained in:
@@ -128,7 +128,8 @@ spring:
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
# 配置一个连接在池中最小生存的时间,单位是毫秒
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
# SQL Server 中间库不支持 DUAL,使用通用校验语句(MySQL/SQL Server 均兼容)
|
||||
validationQuery: SELECT 1
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
|
||||
Reference in New Issue
Block a user