@HystrixCommand(fallbackMethod = "fallback", //降级方法
commandProperties = {
@HystrixProperty(name = "circuitBreaker.enabled", value = "true"),
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "10"), //请求次数
@HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "10000"), //时间范围 10s
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "60"), //失败率达到60%
@HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "10000"), //等待恢复时间
})
标签:常用,10000,name,hystrix,value,HystrixProperty,HystrixCommand,circuitBreaker
From: https://www.cnblogs.com/qiuzhongyong/p/16729277.html