How would I implement a custom endpoint in SpringBoot to achieve the following:
http://localhost:8080/actuator/health/custom
where "custom" is the endpoint I want to implement that extends health.
How would I implement a custom endpoint in SpringBoot to achieve the following:
http://localhost:8080/actuator/health/custom
where "custom" is the endpoint I want to implement that extends health.
That url is used to expose the Health checks for the application, if that is your situation, you only need to include the dependencies for the actuator :
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
and you can see the status of the app.
If you need something more specific, only configure the dependency as you can see here .
Also you can override the behavior of the healthchecks but that dependency have a lot of functionality.