From 84d578fb591670efa280e9e3b549a2b175731bc7 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Wed, 27 Aug 2025 01:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5a8ca86..bd3f14b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -29,7 +29,12 @@ spring: password: Sczx123@ driver-class-name: com.mysql.cj.jdbc.Driver hikari: - maximum-pool-size: 10 + maximum-pool-size: 20 # 最大连接数 + minimum-idle: 5 # 最小空闲连接数 + connection-timeout: 30000 # 连接超时时间(毫秒) + idle-timeout: 600000 # 空闲连接超时时间(毫秒) + max-lifetime: 1800000 # 连接最大存活时间(毫秒) + leak-detection-threshold: 60000 # 连接泄漏检测阈值(毫秒) auto-commit: true redis: host: 115.190.8.52