1. Clone the application
git clone https://github.com/cloudtechmasters/spring-boot-actuator-demo.git
2. Build and run the app using maven
mvn package
java -jar target/actuator-demo-0.0.1-SNAPSHOT.jar
Alternatively, you can run the app directly without packaging like this -
mvn spring-boot:run
The app will start running at http://localhost:8080.
All the actuator endpoints will be available at http://localhost:8080/actuator.
Some of the actuator endpoints are protected with Spring Security's HTTP Basic Authentication. You can use the username actuator
and password actuator
for http basic authentication.