Spring cloud 的Hystrix 須要在主類上面添加 @EnableHystrix annotation 同時必須在包含ui
@HystrixCommand(commandProperties = { @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "2") })
註解 在方法上,不然沒法產生Hystrix.streamspa
Spring cloud 的Hystrix 須要在主類上面添加 @EnableHystrix annotation 同時必須在包含ui
@HystrixCommand(commandProperties = { @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "2") })
註解 在方法上,不然沒法產生Hystrix.streamspa