From 9f4ab20b9d3e2253a13b1921bb653eabda2505f6 Mon Sep 17 00:00:00 2001 From: xupei Date: Wed, 5 Feb 2025 10:49:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20code-create=20DB=E6=9C=80?= =?UTF-8?q?=E5=A4=A7=E8=BF=9E=E6=8E=A5=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/AccountServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java index 690e4e13..93299562 100644 --- a/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/AccountServiceImpl.java @@ -1243,7 +1243,7 @@ public class AccountServiceImpl extends ServiceImpl impl config.addDataSourceProperty("cachePrepStmts", "true"); config.addDataSourceProperty("prepStmtCacheSize", "250"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048"); - config.addDataSourceProperty("maxLifetime", 300000); + config.addDataSourceProperty("maxLifetime", 60000); dataSource = new HikariDataSource(config); }