From 12bb51845b80ec32a7add5e59a60d5216ed625b8 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 9 Sep 2024 11:59:57 +1000 Subject: [PATCH] fixing liveness and readiness probes --- pom.xml | 8 ++++++-- src/main/resources/application.yml | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 73083db..ea3b5f2 100644 --- a/pom.xml +++ b/pom.xml @@ -54,8 +54,8 @@ - org.springframework.cloud - spring-cloud-config-server + org.springframework.boot + spring-boot-starter-actuator org.springframework.boot @@ -65,6 +65,10 @@ org.springframework.boot spring-boot-starter-web + + org.springframework.cloud + spring-cloud-config-server + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2d1a964..7ed3885 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -20,6 +20,13 @@ management: include: '*' health: show-details: always + probes: + enabled: true + health: + livenessstate: + enabled: true + readinessstate: + enabled: true logging: file: