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原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。