【工作踩坑】openFeign 与 springboot版本对应问题

如果不对应,会发生诸如

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“

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/47ae55d2d6.html