Complete the code to enable the basic health endpoint in Spring Boot Actuator.
management.endpoints.web.exposure.include=[1]The health endpoint shows the application health status and is commonly enabled first.
Complete the code to expose all actuator endpoints over HTTP.
management.endpoints.web.exposure.include=[1]Using * exposes all available actuator endpoints.
Fix the error in the property to enable the metrics endpoint.
management.endpoints.web.exposure.include=[1]The correct endpoint name is metrics with an 's' at the end.
Fill both blanks to configure the info and health endpoints exposure.
management.endpoints.web.exposure.include=[1],[2]
The info and health endpoints are commonly exposed together.
Fill all three blanks to create a custom health indicator bean in Spring Boot.
import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.health.HealthIndicator; import org.springframework.stereotype.Component; @Component public class CustomHealthIndicator implements [1] { @Override public [2] health() { return Health.[3]().build(); } }
You implement HealthIndicator, return a Health object, and use Health.up() to indicate healthy status.
