mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
优化:优化 Hikari 连接池配置
This commit is contained in:
@@ -36,11 +36,11 @@ spring:
|
||||
# 最小空闲线程数量
|
||||
min-idle: 10
|
||||
# 获取连接超时时间
|
||||
connection-timeout: 10000
|
||||
connection-timeout: 30000
|
||||
# 校验超时时间
|
||||
validation-timeout: 5000
|
||||
# 空闲连接最大存活时间(默认 10 分钟)
|
||||
idle-timeout: 60000
|
||||
idle-timeout: 600000
|
||||
# 此属性控制池中连接的最长生命周期,0 表示无限生命周期(默认 30 分钟)
|
||||
max-lifetime: 900000
|
||||
# 连接测试 query(配置检测连接是否有效)
|
||||
|
@@ -36,11 +36,11 @@ spring:
|
||||
# 最小空闲线程数量
|
||||
min-idle: 10
|
||||
# 获取连接超时时间
|
||||
connection-timeout: 10000
|
||||
connection-timeout: 30000
|
||||
# 校验超时时间
|
||||
validation-timeout: 5000
|
||||
# 空闲连接最大存活时间(默认 10 分钟)
|
||||
idle-timeout: 60000
|
||||
idle-timeout: 600000
|
||||
# 此属性控制池中连接的最长生命周期,0 表示无限生命周期(默认 30 分钟)
|
||||
max-lifetime: 900000
|
||||
# 连接测试 query(配置检测连接是否有效)
|
||||
|
Reference in New Issue
Block a user