Spring Cloud應用開發(四:服務容錯保護)

1、Spring Cloud Hystrix的使用 1.1、創建microservice-eureka-user-hystrix工程,並在其pom.xml中引入eureka和hystrix的依賴;   1.2、編寫配置文件。在配置文件中添加Eureka服務實例的端口號,服務端地址等;   1.3、在工程主類Application中使用@EnableCircuitBreaker註解開啓斷路器功能;
相關文章
相關標籤/搜索