cloud feign 灵异事件

报错 :
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceInitializerPostProcessor': Unsatisfied dependency expressed through field 'beanFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.****.feign.UserCenterFeignService': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.netflix.feign.FeignClientFactoryBean] from ClassLoader [sun.misc.Launcher$AppClassLoader@61e4705b]

image.png

解决办法 加入依赖


image.png

原因未明 、创建项目时候导入了feign
使用@EnableFeignClients注解 也ok 不报错 我就以为 feign包导入了
结果不知道哪来的包来的这个注解 导致 灵异事件

image.png

严重怀疑是这个包里的

mmp 莫名其妙的好了 仿佛又回到从前
你对java 一无所知......

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容