Hystrix Stream 踩得坑
文章目录
Spring cloud 的Hystrix 需要在主类上面添加 @EnableHystrix annotation 同时必须在包含
@HystrixCommand(commandProperties = { @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "2") })
注解 在方法上,否则无法产生Hystrix.stream
Spring cloud 的Hystrix 需要在主类上面添加 @EnableHystrix annotation 同时必须在包含
@HystrixCommand(commandProperties = { @HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "2") })
注解 在方法上,否则无法产生Hystrix.stream
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论