Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mpredli01/actuator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

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 mike@redlich.net with any questions.

About

Spring Actuator Endpoint application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /