一 代码位置
https://github.com/cakin24/spring-cloud-code/tree/master/ch6-3
二 测试
1 启动Eureka
2 启动hystrix-Dashboard
3 启动消费者
4 观察Hystrix Dashboard的管理界面
5 访问 http://localhost:9091/getProviderData
6 管理界面显示
7 不停访问http://localhost:9091/getProviderData
断路器打开
8 启动服务提供者
9 再次访问http://localhost:9091/getProviderData
Hystrix Dashboard管理界面如下