一般情况下,访问/health节点时会展示健康详情,但是,如果你使用了安全上下文,则只会展示简单的状态信息。
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency>
你可以通过设置如下信息,也可以开启.
management.security.enabled: false
endpoints.health.sensitive: false
http://docs.spring.io/spring-boot/docs/1.5.2.RELEASE/reference/htmlsingle/#production-ready-health
http://docs.spring.io/spring-boot/docs/1.5.2.RELEASE/reference/htmlsingle/#production-ready-health-access-restrictions