springboot-How to enable all endpoints of acutator in spring boot 1.x and 2.x apps ?
1. The purpose of this post
By default, spring boot 1.x and 2.x apps only enable info and health endpoint of actuator, sometimes, we want to enable all
endpoints temporarily. It’s easy, let’s do it.
2. Environments
SpringBoot 1.x and 2.x
Java 1.8+
3. The solution
3.1 Add actuator dependency your POM.xml
If springboot find the tomcat connection pool jar file in the classpath, then it would use it as the default connection pool. We must remove it.
Run your springboot app, and visit http://localhost:8080/actuator/metrics, you would get this: