SpringCloud整合SpringBoot报错:java.lang.NoSuchMethodError

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder

报错原因:SpringBoot的版本与SpringCloud的版本不兼容

解决方案:版本一一对应,版本不对应一般是运行不起来的。

原文:https://blog.csdn.net/sinat_33889619/article/details/89403796

"spring-cloud": {
“Edgware.SR5”: “Spring Boot >=1.5.0.RELEASE and <=1.5.20.RELEASE”,
“Edgware.BUILD-SNAPSHOT”: “Spring Boot >=1.5.999.BUILD-SNAPSHOT and <2.0.0.M1”,
“Finchley.M2”: “Spring Boot >=2.0.0.M3 and <2.0.0.M5”,
“Finchley.M3”: “Spring Boot >=2.0.0.M5 and <=2.0.0.M5”,
“Finchley.M4”: “Spring Boot >=2.0.0.M6 and <=2.0.0.M6”,
“Finchley.M5”: “Spring Boot >=2.0.0.M7 and <=2.0.0.M7”,
“Finchley.M6”: “Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1”,
“Finchley.M7”: “Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2”,
“Finchley.M9”: “Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE”,
“Finchley.RC1”: “Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE”,
“Finchley.RC2”: “Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE”,
“Finchley.SR3”: “Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT”,
“Finchley.BUILD-SNAPSHOT”: “Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3”,
“Greenwich.M1”: “Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE”,
“Greenwich.SR1”: “Spring Boot >=2.1.0.RELEASE and <2.1.5.BUILD-SNAPSHOT”,
“Greenwich.BUILD-SNAPSHOT”: “Spring Boot >=2.1.5.BUILD-SNAPSHOT”
}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值