yml将feign配置为开启状态

feign:
  hystrix:
    enabled: true

编写类实现feign接口

此处测试用

public interface UserService 做为接口编写
public class FeignHystrix  implements UserService 实现这个接口

 

代码如下


feign断路器整合项目

可以了

相关文章:

  • 2021-07-13
  • 2021-06-01
  • 2021-11-23
  • 2021-09-09
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-11-25
  • 2021-04-22
  • 2021-11-05
  • 2021-08-19
相关资源
相似解决方案