Feign: Did you forget to include spring-cloud-starter-loadbalancer,按照大佬的做法降了版本没用

没错,我也是在尚硅谷的gulimall项目中做练习遇到这个问题,于是按照大佬的做法,这篇博客降了版本,但是降完之后还是报错,org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
最后找到了原因,因为在这篇博客中只是将coupon中的版本进行了更改
而没有更改member的pom文件中对应地方的文件

改完之后

总结:代码出错了要进行思考,而不是在网上查找错误直接将错误改正就可以了

posted @ 2021-10-29 17:58  yongthurio  阅读(409)  评论(0)    收藏  举报