No qualifying bean of type 'org.springframework.cloud.openfeign.FeignContext' available

阿萨_ 发布于 04/29 14:32
阅读 49
收藏 0

@lotern 你好,想跟你请教个问题:
基于https://my.oschina.net/kaster/blog/4694238这个问题,在Hoxton版本下,会报如下错误:

org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.openfeign.FeignContext' available
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:351) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:342) ~[spring-beans-5.2.1.RELEASE.jar:5.2.1.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1126) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE]
    at org.springframework.cloud.openfeign.FeignClientFactoryBean.getTarget(FeignClientFactoryBean.java:260) ~[spring-cloud-openfeign-core-2.2.0.RELEASE.jar:2.2.0.RELEASE]
    at org.springframework.cloud.openfeign.FeignClientBuilder$Builder.build(FeignClientBuilder.java:102) ~[spring-cloud-openfeign-core-2.2.0.RELEASE.jar:2.2.0.RELEASE]

 

请问下有什么可以解决的方案吗?

 

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部