小工具知识网

当前位置: 首页 > 行业知识 > 【工作踩坑】openFeign 与 springboot版本对应问题

行业知识

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

2026-12-05 15:36:00 来源:互联网转载

如果不对应,会发生诸如

1、Faild to load ApplicationContext ,嵌套着:

()

Errindex.php/tags-1038.html" >or 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“

上一篇:asp服务器怎么搭建?

下一篇:WP5快速定位表格技巧,轻松掌握操作指南!