From 0180388a2f1ab67cc3c91576bb20f7ad69c38b55 Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Mon, 15 Jun 2026 17:28:07 +0800 Subject: [PATCH] =?UTF-8?q?config(datasource):=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=B1=A0keepAlive=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 开启keepAlive功能以定期检测空闲连接有效性 - 网络抖动后可自动恢复连接 - 提高生产环境数据库连接稳定性 --- ruoyi-admin/src/main/resources/application-prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruoyi-admin/src/main/resources/application-prod.yml b/ruoyi-admin/src/main/resources/application-prod.yml index 22b3891e..58def70c 100644 --- a/ruoyi-admin/src/main/resources/application-prod.yml +++ b/ruoyi-admin/src/main/resources/application-prod.yml @@ -22,6 +22,8 @@ spring: testWhileIdle: true testOnBorrow: false testOnReturn: false + # 开启keepAlive,定期检测空闲连接的有效性,网络抖动后自动恢复 + keepAlive: true webStatFilter: enabled: true statViewServlet: