Spring Boot - Quick Intro to Spring Boot Actuator Endpoints and How to enable them?

[Last Updated: Apr 24, 2018]

Spring Boot Actuator includes a number of features related to runtime monitoring and managing of the application. We can use those features via HTTP endpoints or with JMX. In this tutorial we will see how to enable the actuator HTTP endpoints.

Actuator dependency

The dependency of spring-boot-starter-actuator should be included to enable the endpoints:


<project .....>

Enabling endpoints

To enable endpoints, we need to assigned their IDs to management.endpoints.web.exposure.include in By default only 'health,info' is assigned (Boot 2.0.1.RELEASE). To enable all, '*' can be used.



The boot main class

In this simple example we are not defining any MVC controllers. The boot main configuration class does not need anything special:

public class SpringBootMain {

  public static void main(String[] args) {;


The enabled endpoints can be viewed at /actuator (hypermedia Response):

Accessing specific endpoints:

Other configuration properties

management.endpoints.web.exposure.exclude= # Endpoint IDs that should be excluded.

management.endpoints.web.base-path=/actuator # Base path for HTTP endpoints, default is /actuator.

management.endpoints.web.path-mapping= # Mapping between endpoint IDs and the path that should expose them, e.g.

Example Project

Dependencies and Technologies Used:

  • Spring Boot 2.0.1.RELEASE
    Corresponding Spring Version 5.0.5.RELEASE
  • spring-boot-starter-actuator : Starter for using Spring Boot's Actuator which provides production ready features to help you monitor and manage your application.
  • spring-boot-starter-web : Starter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container.
  • JDK 1.8
  • Maven 3.3.9

Enabling Spring Boot Actuator Endpoints Select All Download
  • enabling-actuator-end-point-example
    • src
      • main
        • java
          • com
            • logicbig
              • example
        • resources

    See Also