Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What are spring boot actuator endpoints in spring boot?


Asked by Tobias Beil on Dec 12, 2021 Spring



Spring Boot Actuator Endpoints lets us monitor and interact with our application. Spring Actuator is a Spring Boot sub-module and provides built-in endpoints that we can enable and disable for our application.
And,
There are three main features of Spring Boot Actuator: Endpoint: The actuator endpoints allows us to monitor and interact with the application. Spring Boot provides a number of built-in endpoints. We can also create our own endpoint.
Next, Spring Boot enables security for all actuator endpoints. It uses form-based authentication that provides user Id as the user and a randomly generated password. We can also access actuator-restricted endpoints by customizing basicauth security to the endpoints. We need to override this configuration by management.security.roles property.
Subsequently,
Spring Boot allows you to view and change the logging level of a spring boot application at runtime using loggers endpoint like http://localhost:8080/actuator/loggers.
Also Know,
If you want to use the separate port number for accessing the Spring boot actutator endpoints add the management port number in application.properties file. management.port = 9000 YAML file users can add the following property in your application.yml file. management: port: 9000