[Hystrix]2.解决SpringCloud访问http://localhost:7811/actuator/health无法显示断路器信息无法显示

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_36964056/article/details/86033408

解决SpringCloud断路器开启状态信息不显示问题

  1. 首先需要引入actuator依赖
	<!--监控中心-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-actuator</artifactId>
		</dependency>
  1. 然后引入修改全局配置文件配置:
management:
  endpoint:
      health:
        show-details: always

访问http://localhost:7811/actuator/health就可以看到断路器的关闭和开启状态了

猜你喜欢

转载自blog.csdn.net/weixin_36964056/article/details/86033408