February 2018
Intermediate to advanced
356 pages
9h 10m
English
In version 2 of Spring Boot, the Spring Actuator management endpoints are disabled by default, because these endpoints can have sensitive data of a running application. Then, we need to configure to enable these endpoints properly.
There is a special point to pay attention to. If the application is exposed publicly, you should protect these endpoints.
Let's enable our management endpoints:
management: endpoints: web: expose: "*"
In the preceding configuration, we enabled all the management endpoints, and then we can start to test some endpoints.
Let's test some endpoints. First, we will test the metrics endpoints. This endpoint shows the metrics available for the running application. Go to http://localhost:8081/actuator/metrics ...