spring-cloud之hystrix解决雪崩

一、消费者服务降级   1、首先要在pom增加hystrix功能,如下: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix</artifactId> </dependency> 2、在application中配置如下,开启服务降级的断路器 @Enabl
相关文章
相关标签/搜索