系列4-springCloud微服務-Hystrix熔斷器

1.添加服務端的熔斷器 步驟1:修改服務端pom文件,添加對Hystrix組件的引用。 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-hystrix</artifactId> </dependency> 步驟2:修改服務端Controller類中的方法,在方法上添
相關文章
相關標籤/搜索