1:添加hystrix依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency>
2:配置过滤器
3:添加hystrix配置
4:在Gateway服务中添加Controller实现请求资源/fallback
1:添加hystrix依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency>
2:配置过滤器
3:添加hystrix配置
4:在Gateway服务中添加Controller实现请求资源/fallback