springboot Possibly consider using a shorter maxLifetime value.

我们在springboot项目中使用默认的连接池时,有时过一段时间不使用数据库,再次查询数据库时会报错,显示连接池中的连接不可用。具体就是报Possibly consider using a shorter maxLifetime valu

2025-1-31770

Possibly consider using a shorter maxLifetime value.

启动我的 SpringBoot 应用程序后,在服务器启动几分钟后出现异常。没有在外部使用任何 HikariPool 配置,Spring Boot 默认使用 HikariPool 这是我在控制台中遇

2025-1-31900