Home:ALL Converter>Implementing health check rest API using custom health indicator for Spring boot application

Implementing health check rest API using custom health indicator for Spring boot application

Ask Time:2020-06-10T16:02:21         Author:Joy

Json Formatter

I am working on Spring Boot web application running on a port other than 8080. I need to write a rest API for checking the health of the application as well as the underlying database.

Regarding the same, I have gone through this post: How to add a custom health check in spring boot health?, but did not find any concrete implementation.

Actually I would like to do following:

  1. Health check for all the downstream APIs

  2. Whether DB is working fine

So could anyone please help me with this? Thanks.

Author:Joy,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/62298613/implementing-health-check-rest-api-using-custom-health-indicator-for-spring-boot
yy