返回目录
https://blog.csdn.net/BW_Bear/article/details/88746646
源码位置:
微服务注册管理:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-discovery-eureka
生产者:
https://github.com/zhaowei-zhang/CloudTest/tree/master/使用Hystrix实现容错/microservice-provider-user
通用方式整合:
Feign方式整合:
通用方式整合的Hystrix
1.加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2.启动后调用接口
3.打开监控
ip:接口/hystrix.stream
4.测试
Feign方式整合的Hystrix
1.加依赖
<!--hystrix 依赖-->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
2.启动类添加注解
3.打开监控
ip:接口/hystrix.stream
4.测试
Hystrix监控可视化
https://blog.csdn.net/BW_Bear/article/details/88769748