系列4-springCloud微服务-Hystrix熔断器

1.添加服务端的熔断器 步骤1:修改服务端pom文件,添加对Hystrix组件的引用。 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix</artifactId> </dependency> 步骤2:修改服务端Controller类中的方法,在方法上添
相关文章
相关标签/搜索