优化数据库连接池配置参数

pull/875/head
Jie Zheng 2025-01-15 11:17:37 +08:00
parent 4e38658746
commit 184d67e0ed
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ spring:
username: ${DB_USER:eladmin}
password: ${DB_PWD:123456}
# 初始连接数
initial-size: 5
initial-size: 20
# 最小连接数
min-idle: 15
min-idle: 20
# 最大连接数
max-active: 30
max-active: 50
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间