Application custom information

There is one particular endpoint which we can use to expose custom information from our application. This information will be exposed to /info endpoint. 

To configure that, we can use the application.yaml file and put the desired information respecting the pattern, as follows:

info:  project: "twitter-gathering"  kotlin: @kotlin.version@

Thr desired properties must be preceded by the info. *. Then, we can test our first actuator endpoint and check our /info resource.

Let's try to access the http://localhost:8081/info. The information filled on application.yaml should be displayed, as shown here:

As we can see, ...

Get Spring 5.0 By Example 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.