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

This commit is contained in:
2025-02-05 10:56:17 +08:00
parent 9f4ab20b9d
commit d840185ec7

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", 60000);
config.addDataSourceProperty("maxLifetime", 50000);
dataSource = new HikariDataSource(config);
}