tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Microservices > Spring Boot > How to enable All Endpoints under Spring Boot Actuator

How to enable All Endpoints under Spring Boot Actuator

Author: Venkata Sudhakar

Spring Boot Actuator provides many introspection and debugging features out of the box through a well defined REST endpoints. The below example shows how to enable all endpoints under Spring Boot Actuator

First add the below Maven dependency to enable Spring Boot Actuator.

Next expose all endpoints under Spring Boot Actuator.

You should see the following output after starting SpringBoot application

2021-01-23 20:39:40.500  INFO 22524 --- [main] o.s.b.a.e.web.EndpointLinksResolver:
    Exposing 13 endpoint(s) beneath base path '/actuator'
2021-01-23 20:39:40.625  INFO 22524 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer:
    Tomcat started on port(s): 8080 (http) with context path ''
2021-01-23 20:39:40.655  INFO 22524 --- [main] com.example.demo.DemoApplication: 
    Started DemoApplication in 11.433 seconds (JVM running for 13.142)

Now you can access Actuator APIs as show below

http://localhost:8080/actuator/
http://localhost:8080/actuator/info
http://localhost:8080/actuator/env
http://localhost:8080/actuator/health
http://localhost:8080/actuator/beans
http://localhost:8080/actuator/caches
http://localhost:8080/actuator/loggers
http://localhost:8080/actuator/threaddump
http://localhost:8080/actuator/heapdump
http://localhost:8080/actuator/metrics
http://localhost:8080/actuator/scheduledtasks
http://localhost:8080/actuator/mappings

 
  


  
bl  br