I have a SpringBoot app which is connect to a SQL SERVER. It works however after couple of hours the connection is closed and my whole app goes down. I've tried to find how to setup auto reconnect but I found only solutions for MySql. Does anyone know how to do it ? Cheers
EDIT: Stack trace
2018-10-18 01:07:10.346 WARN 14 --- [nio-8080-exec-5] com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Failed to validate connection ConnectionID:230 ClientConnectionId: 9d8060c2-016d-4040-a901-fadb5cd4a4c0 (The connection is closed.)
2018-10-18 01:07:40.344 WARN 14 --- [nio-8080-exec-5] o.s.b.a.jdbc.DataSourceHealthIndicator : DataSource health check failed
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms.