一、Hystrix 简介
在服务的消费方 添加Hystrix实现容错 主要记录的是 断路器保护
1.添加pom文件
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>1.5.8</version>
</dependency>
2.调用方法
3.在启动类上添加
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>1.5.8</version>
</dependency>