spring-boot health not showing details (withDetail info)

后端 未结 7 1113
北荒
北荒 2020-12-29 20:13

I have written a class implementing HealthIndicator, overriding the health-method. I return Health.down().withDetail(\"SupportServiceStatus\", \"UP\").build();<

7条回答
  •  既然无缘
    2020-12-29 21:10

    For Spring boot 2.X I have following in my application.properties file for detailed information:

    management.endpoints.web.exposure.include=*
    management.endpoint.health.show-details=ALWAYS
    

提交回复
热议问题