I'm facing the following problem in my application that after a while running it starts to show the following warn.
HikariPool-1 - Failed to validate connection ConnectionID:19 ClientConnectionId: cea9b6e9-baac-495d-8f9b-08723893b6d9 (The connection is closed.). Possibly consider using a shorter maxLifetime value.
I already set the maxLifetime property to 600000 in my application.yml but the problem still persists.
Do I have other Hikari settings to configure?
I'm using spring boot 2.5.12 and data base Sql Server 2017
application.yml
spring:
main:
allow-circular-references: true
datasource:
hikari:
maxLifetime: 600000
url: jdbc-url
username: userName
password: passwaord
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
jpa:
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.SQLServer2012Dialect
proc:
param_null_passing: true
show-sql: false
data:
web:
pageable:
default-page-size: 20