版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
解决SpringCloud断路器开启状态信息不显示问题
- 首先需要引入actuator依赖
<!--监控中心-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
- 然后引入修改全局配置文件配置:
management:
endpoint:
health:
show-details: always
访问http://localhost:7811/actuator/health就可以看到断路器的关闭和开启状态了