From bdc8cae2d028a44adbd69ad0a71a1e9c5aa03535 Mon Sep 17 00:00:00 2001 From: Dhruv Sonagara <78945411+dhruvsonagara@users.noreply.github.com> Date: Sun, 31 Dec 2023 15:19:52 +0530 Subject: [PATCH] [GOV-134] Fix liveness and readiness issues (#17) * [GOV-134] Fix liveness and readiness issues * updated the port for actuator * Updated the port for actuator * adding the details part in the actuator API * Trying with exposing different port for the actuator * Trying with exposing different port for the actuator * Exposing the spring port in property file and testing' * Trying with exposing different port for the actuator * Updated the contactpoint from localhost --- build.gradle | 4 ++++ src/main/resources/application.yml | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9ed7df3..4c9832f 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,7 @@ repositories { ext { camelVersion = '3.18.1' zeebClientVersion = '8.1.1' + springBootVersion = '2.7.3' } configurations.all { @@ -51,6 +52,9 @@ dependencies { implementation 'org.json:json:20210307' compileOnly 'org.projectlombok:lombok:1.18.24' annotationProcessor 'org.projectlombok:lombok:1.18.24' + implementation "org.springframework.boot:spring-boot-starter:$springBootVersion" + implementation "org.springframework.boot:spring-boot-starter-web:$springBootVersion" + implementation "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion" } group = 'org.mifos' diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 19ffe9e..8b2b469 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -25,6 +25,7 @@ zeebe: connector: ilp-secret: h4on38bsDjKiat2783gnklgafikmeuu5123kpobb7jm99 + mojaloop: enabled: true perf-mode: false @@ -45,4 +46,18 @@ dfspids: "DFSPID" logging: level: - root: ERROR \ No newline at end of file + root: ERROR + +server: + port: 8080 +management: + endpoint: + health: + probes: + enabled: true + liveness: + enabled: true + readiness: + enabled: true +# show-details: always +