Exposing application information

In Spring Boot, Actuator also provides arbitrary application information by using the /info endpoint. If you make a GET request call to the /info endpoint, by default it will return empty JSON, {}.

The empty JSON means Spring Boot doesn't provide default information for your application. The /info endpoint provides any information for your Spring application that you want to expose to your client or the public. You can add any information about your application to this endpoint in application.properties or application.yml as follows:

application.propertiesinfo.app.name=Spring Boot Actuator Application info.app.description=This is my first Working Spring Actuator Examples info.app.version=0.0.1-SNAPSHOT info.helpline.email=admin@dineshonjava.com ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.