From 52b5065558147b073e7665ed2006bd5d9f36c177 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 22 Apr 2020 20:36:34 +0200 Subject: [PATCH] Add fail timeout for mariadb spring boot connection, Add spring actuator --- backend/build.gradle | 2 ++ backend/src/main/resources/application.properties | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/build.gradle b/backend/build.gradle index a7a1c3e..52afab8 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -17,7 +17,9 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-rest' 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' + runtimeOnly 'com.h2database:h2' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 817a520..a09a491 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,3 +1,4 @@ server.port=80 spring.data.rest.basePath=/api +spring.datasource.hikari.initialization-fail-timeout=0 spring.profiles.active=prod \ No newline at end of file