From b82ed07bcac5f96046d54024b6070ab3a770c9dd Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Wed, 17 Jul 2024 22:19:00 +0200 Subject: [PATCH] Activate health endpoint --- pom.xml | 4 ++++ src/main/resources/application.yaml | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/pom.xml b/pom.xml index 09d200c..ff8fb98 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,10 @@ 24.4.6 + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot spring-boot-starter-data-jpa diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 4b0e768..7eee908 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -1,6 +1,16 @@ server: port: ${PORT:8080} +management: + endpoints: + enabled-by-default: false + web: + exposure: + include: "health" + endpoint: + health: + enabled: true + spring: application: name: gartenplus