Skip to content

Latest commit

 

History

History
39 lines (20 loc) · 1.19 KB

README.md

File metadata and controls

39 lines (20 loc) · 1.19 KB

Spring Boot 2.0 Will Feature Improved Actuator Endpoints

InfoQ Java Queue

published August 31, 2017

This example application was adapted from Stéphane Nicoll's actuator example and demonstrates how to create a user-defined endpoint.

Application Build and Execution with Maven

The application can be built with Maven by issuing the following commands:

mvn clean package

java -jar target/actuator-0.0.1.jar

Application Build and Execution with Gradle

The application can be built with Gradle by issuing the following commands:

gradle clean build

java -jar build/libs/actuator-0.0.1.jar

Once running, open your browser:

localhost:8080/application will display all the endpoints.

localhost:8080/application/person will display all the names from the user-defined endpoint.

localhost:8080/application/person/mike will display only my name.

The other URL options are:

localhost:8080/application/person/rowena localhost:8080/application/person/barry

Please don't hesitate to contact me at [email protected] with any questions.