测试 code-create DB最大连接时长

This commit is contained in:
2025-02-05 10:49:10 +08:00
parent 2988a3b34e
commit 9f4ab20b9d

View File

@@ -1243,7 +1243,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> 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);
}