spring boot中,health显示完整信息

spring-boot2.0中,spring-boot-starter-actuator可以实现应用的监控。

web端点默认的监控端点只有health和info。

    spring boot中acurator的默认配置

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

    其中,只显示了概要信息,没有显示完整信息,如果要在访问/acurator/health时显示完整信息,需要增加如下配置:

   

management.endpoint.health.show-details=always

猜你喜欢

转载自tarsean.iteye.com/blog/2415915