From 32dac0ad3748f7c506b7ca9bdb868ffe5a46621e Mon Sep 17 00:00:00 2001 From: somanath21 <104554892+somanath21@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:11:19 +0530 Subject: [PATCH] #GOV-134 enable liveness and readiness (#43) * enable liveness and readiness * use spring actuator version 2.2.2 * updtae spring version --------- Co-authored-by: Somanath Hugar --- build.gradle | 1 + src/main/resources/application.yml | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/build.gradle b/build.gradle index 5c12b600..0966ddba 100644 --- a/build.gradle +++ b/build.gradle @@ -71,6 +71,7 @@ dependencies { dependencies { implementation "org.springframework.boot:spring-boot-starter-web:*" implementation "org.springframework.boot:spring-boot-starter-tomcat:*" + implementation 'org.springframework.boot:spring-boot-starter-actuator:*' implementation "io.springfox:springfox-oas:3.0.0" implementation "io.springfox:springfox-swagger-ui:3.0.0" implementation "com.github.joschi.jackson:jackson-datatype-threetenbp:2.6.4" diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a8543506..71b07293 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -49,3 +49,13 @@ server: servlet: contextPath: /fineract port: 7070 + +management: + endpoint: + health: + probes: + enabled: true + liveness: + enabled: true + readiness: + enabled: true \ No newline at end of file