From 144305a6c0cb085dd28040803ddf010c134b08a9 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sun, 26 Apr 2020 15:52:50 +0200 Subject: [PATCH] Lower max lifetime value for mysql connection --- backend/build.gradle | 2 +- backend/src/main/resources/application.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/build.gradle b/backend/build.gradle index 52afab8..7811350 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -18,7 +18,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-actuator' - implementation 'org.mariadb.jdbc:mariadb-java-client:1.5.7' + implementation 'org.mariadb.jdbc:mariadb-java-client' runtimeOnly 'com.h2database:h2' testImplementation('org.springframework.boot:spring-boot-starter-test') { diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index a09a491..1cf2a4f 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,4 +1,5 @@ server.port=80 spring.data.rest.basePath=/api spring.datasource.hikari.initialization-fail-timeout=0 +spring.datasource.hikari.max-lifetime=300000 spring.profiles.active=prod \ No newline at end of file