①先启动三个eureka集群。
②启动microservicecloud-provider-dept-hystrix-8001。
③启动microservicecloud-consumer-hystrix-dashboard子项目。
④测试:
http://localhost:9001/hystrix
第一步:http://localhost:8001/hystrix.stream 服务提供者端
输入http://localhost:port/hystrix.stream页面输出一直ping.内容为空
只有ping没有内容。
第二步:访问http://localhost:9001/hystrix,然后在界面填写:http://localhost:8001/hystrix.stream、2000、howard,再点击Monitor Stream看到的是loading,这是因为在等待。