Hystrix 超时设置 默认调用
1:默认熔断
2 :超时设置
// @HystrixCommand (fallbackMethod = “fallback”)
//默认是1秒 这里设置3秒
@HystrixCommand(commandProperties ={
@HystrixProperty(name=“execution.isolation.thread.timeoutInMilliseconds” ,value=“3000”)
} )
1:默认熔断
2 :超时设置
// @HystrixCommand (fallbackMethod = “fallback”)
//默认是1秒 这里设置3秒
@HystrixCommand(commandProperties ={
@HystrixProperty(name=“execution.isolation.thread.timeoutInMilliseconds” ,value=“3000”)
} )