In spring boot, health displays complete information

In spring-boot2.0, spring-boot-starter-actuator can implement application monitoring.

The default monitoring endpoints for web endpoints are only health and info.

    Default configuration of acurator in spring boot

management.endpoints.web.exposure.include=health,info
management.endpoints.web.base-path=/actuator
management.endpoint.health.show-details=never

    Among them, only the summary information is displayed, and the complete information is not displayed. If you want to display the complete information when accessing /acurator/health, you need to add the following configuration:

   

management.endpoint.health.show-details=always

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326072102&siteId=291194637