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 一无所知......

你可能感兴趣的:(cloud feign 灵异事件)