在项目中引入:引入hystrix依赖,如下

 <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>

以上是针对cloud Finchley.SR2 版本,不同版本 artifactId 有所不同。

相关文章: