Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错 Requested bean is currently in creation: Is there an unresolvable circular reference?

Spring Boot 版本为:2.3.9.RELEASE
Spring Cloud版本为:Hoxton.SR10
Spring Cloud Alibaba版本为:2.2.5.RELEASE

报错信息:

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

修改Spring Cloud 版本为Hoxton.SR8 启动成功

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

熔断回调写法:

@FeignClient(value = "user-service",fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @GetMapping("/user/getUserInfoById/{id}")
    User getUserInfoById(@PathVariable Integer id);

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

启动项配置

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

熔断生效:

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

Feign整合Sentinel 开启 feign.sentinel.enabled=true 启动报错

本作品采用《CC 协议》,转载必须注明作者和本文链接
zhaozhangxiao
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!