ITeye博客

spring boot中,health显示完整信息

tarsean · 2018-04-08 11:09 · spring boot · 企业架构 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。