在 spring-boot 2.4 和 spring cloud 2020 中使用 openfeign 实现断路器

问题描述

如果我想升级到 spring-boot 2.4 和 spring cloud 2020。

现在 spring-cloud-starter-netflix-hystrix 已经从 spring-cloud-netflix 中移除, 如何使用 openfeign 实现断路器?

我进行了直接导入,但我的 IDE 无法解析 feign.hystrix.enabled 并且 feign 没有执行回退类。

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
    <version>2.2.7.RELEASE</version>
</dependency>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)