Configuring the Spring Boot Actuator

The Actuator is a great tool. The documentation and history of changed configuration and implementation is however a big big mess.

To cut a LONG story short, with Spring Boot 2 and up, create an file with:

and make sure the file is in the classpath. When you run ./gradlew bootRun it is, but when you run java -jar build/libs/myapp-0.0.1-SNAPSHOT.jar it will NOT.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.