Hystrix Stream 踩得坑

Spring cloud 的Hystrix 需要在主类上面添加 @EnableHystrix annotation 同时必须在包含

@HystrixCommand(commandProperties = { @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "2") })

注解 在方法上,否则无法产生Hystrix.stream

评论

暂无评论