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