下面3s访问不上,触发降级改成yml配置

springcloud hystrix触发降级 yml配置springcloud hystrix触发降级 yml配置

 

 --------------------

方法前一定要加@HystrixCommand

springcloud hystrix触发降级 yml配置

springcloud hystrix触发降级 yml配置

上面是给方法默认的配置deault,这是全局作用。 假如要给某个方法配置超时时间呢,

 

 

如果没有指定commandKey,默认就是方法名。

springcloud hystrix触发降级 yml配置

springcloud hystrix触发降级 yml配置

 

 

所以上面的如果只是指定getProductInfoList ,配置可以这样,

 springcloud hystrix触发降级 yml配置

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2021-09-24
  • 2021-11-16
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2021-08-26
  • 2021-09-06
  • 2022-12-23
  • 2022-01-16
  • 2021-08-11
  • 2022-12-23
相关资源
相似解决方案