- student-springboot 基础服务提供者
- school-springboot 调用 student 服务
- 通过postman调用school微服务 http://localhost:8088/getSchoolDetails1/abcschool
- Hystrix 标注:
@HystrixCommand(fallbackMethod = "callStudentService_Fallback",
commandProperties = {
@HystrixProperty(name = "circuitBreaker.forceClosed", value = "true"),
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "4000")
},
threadPoolKey = "studentServiceThreadPool",
threadPoolProperties = {
@HystrixProperty(name = "coreSize", value = "5"),
@HystrixProperty(name = "maxQueueSize", value = "5")
})
- hystrix stream: http://localhost:8088/hystrix.stream
- hystrix dashboard http://localhost:8088/hystrix