June 2018
Intermediate to advanced
408 pages
11h 23m
English
With the Spring Boot Actuator, all endpoints are enabled by default, except the shutdown endpoint. In order to enable or disable a particular endpoint, a relevant property should be added in the application.properties file. The following is the format for enabling the endpoint:
management.endpoint.<id>.enabled=true
As an example, the following property can be added to enable the shutdown endpoint:
management.endpoint.shutdown.enabled=true
The following log entries can be seen when we bootstrap an application with the default Actuator endpoints enabled:
2018-03-24 17:51:36.687 INFO 8516 --- [ main] s.b.a.e.w.s.WebMvcEndpointHandlerMapping : Mapped "{[/actuator/health],methods=[GET],produces=[application/vnd.spring-boot.actuator.v2+json ...Read now
Unlock full access