I am using actuator and in the application.properties file i have the following fields
management.endpoints.web.exposure.include=health,info
management.endpoint.info.enabled=true
management.info.defaults.enabled=true
when i call the url / actuator i see
{"_links":{"self":{"href":"https://localhost:8443/actuator","templated":false},"health":{"href":"https://localhost:8443/actuator/health","templated":false},"health-path":{"href":"https://localhost:8443/actuator/health/{*path}","templated":true},"info":{"href":"https://localhost:8443/actuator/info","templated":false}}}
but when I call / actuator / info it returns me {}
what am I doing wrong
Thanks
CodePudding user response:
I solved the problem, just add in the application.properties file
management.info.env.enabled=true
and the value of
info.app.name=@project.name@
is returned by / actuator / info