【工作踩坑】openFeign 与 springboot版本对应问题
作者:mmseoamin日期:2024-01-19

如果不对应,会发生诸如

1、Faild to load ApplicationContext ,嵌套着:

Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource

解决方法:在maven仓库里找到两者对应的版本

springboot:

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent

openFeign:

https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-openfeign

我这里两者选择的都是2.2.10.RELEASE。问题终于消除,能正常通过测试了

如果选的springboot版本是3.X,则可能会发生如下错误

”Springbot启动报错-类文件具有错误的版本 61.0, 应为 52.0“