springboot与springcloud版本不对应导致报错java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
springboot启动报错:
10:31:50.221 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
原因:
springboot与springcloud版本不对应。
举例:springboot版本<version>2.1.0.RELEASE</version> 需要与springcloud版本<version>Greenwich.SR2</version>有对应关系。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RELEASE</version>
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Greenwich.SR2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
其它版本:
大版本对应:
| Spring Boot | Spring Cloud |
|---|---|
| 1.2.x | Angel版本 |
| 1.3.x | Brixton版本 |
| 1.4.x stripes | Camden版本 |
| 1.5.x | Dalston版本、Edgware版本 |
| 2.0.x | Finchley版本 |
| 2.1.x | Greenwich.SR2 |
在实际开发过程中,我们需要更详细的版本对应 (https://start.spring.io/actuator/info):
| spring-boot-starter-parent | spring-cloud-dependencies | ||||
|---|---|---|---|---|---|
| 版本号 | 发布日期 | 版本号 | 发布日期 | ||
| 1.5.2.RELEASE | 2017年3月 | 稳定版 | Dalston.RC1 | 2017年未知月 | |
| 1.5.9.RELEASE | 2017年11月 | 稳定版 | Edgware.RELEASE | 2017年11月 | 稳定版 |
| 1.5.16.RELEASE | Edgware.SR5 | ||||
| 1.5.20.RELEASE | Edgware.SR5 | ||||
| Spring Boot >=2.0.0.M3 and <2.0.0.M5 | Finchley.M2 | ||||
| Spring Boot >=2.0.0.M5 and <=2.0.0.M5 | Finchley.M3 | ||||
| Spring Boot >=2.0.0.M6 and <=2.0.0.M6 | Finchley.M4 | ||||
| Spring Boot >=2.0.0.M7 and <=2.0.0.M7 | Finchley.M5 | ||||
| Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1 | Finchley.M6 | ||||
| Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2 | Finchley.M7 | ||||
| Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE | Finchley.M9 | ||||
| Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE | Finchley.RC1 | ||||
| Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE | Finchley.RC2 | ||||
| Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT | Finchley.SR4 | ||||
| Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3 | Finchley.BUILD-SNAPSHOT | ||||
| Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE | Greenwich.M1 | ||||
| Spring Boot >=2.1.0.RELEASE and <2.1.9.BUILD-SNAPSHOT | Greenwich.SR2 | ||||
| Spring Boot >=2.1.9.BUILD-SNAPSHOT and <2.2.0.M4 | Greenwich.BUILD-SNAPSHOT | ||||
| Spring Boot >=2.2.0.M4 and <=2.2.0.M5 | Hoxton.M2 | ||||
| Spring Boot >=2.2.0.BUILD-SNAPSHOT | Hoxton.BUILD-SNAPSHOT | ||||
| 待更新... | |||||
参考博客:https://www.cnblogs.com/zhuwenjoyce/p/10261079.html
springboot与springcloud版本不对应导致报错java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V的更多相关文章
- SpringCloud异常(Euruka):Application run failed java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder
在测试Euruka作为服务注册中心的时候碰到了这个问题,错误提示如下: "C:\Program Files\Java\jdk1.8.0_161\bin\java" -XX:Tier ...
- new AppiumDriver<>(new URL(url), capabilities) 报错 java.lang.NoSuchMethodError: com.google.common.base.Throwables.throwIfUnchecked(Ljava/lang/Throwable;)V
2017-10-11 17:37:02.102 INFO c.u.a.r.PrepareDriver:41 - appium server url : http://127.0.0.1:4723/wd ...
- SpringBoot 导入插件报错 Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:2.4.1
使用 maven 导入插件的时候报错: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:2.4.1 我的 ...
- Spring boot 新建项目pom.xml文件报错 Failure to transfer org.springframework.boot:spring-boot-maven-plugin
新建项目依赖下载时网络中断导致资源损坏 删除.m2\repository中后缀名为lastUpdated的文件 cd %userprofile%\.m2\repository for /r %i in ...
- selenium 打开浏览器报错java.lang.NoSuchMethodError: org.openqa.selenium.chrome.ChromeOptions.addArguments([Ljava/lang/String;)
java.lang.NoSuchMethodError: org.openqa.selenium.chrome.ChromeOptions.addArguments([Ljava/lang/Strin ...
- spring Boot启动报错Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtils.getAnnotationAttributes
spring boot 启动报错如下 org.springframework.context.ApplicationContextException: Unable to start web serv ...
- springboot和springcloud版本冲突问题
最近搭建eureka项目,出现boot和cloud版本不匹配错误,记录下来 2019-12-06 14:00:20.043 ERROR 180780 --- [ main] o.s.boot.Spri ...
- pagehelper调用mybatis报错java.lang.NoSuchMethodError:org.apache.ibatis.reflection.MetaObject.forObject
最近在升新的基础框架到spring cloud,启动时pagehelper报错,如下: java.lang.NoSuchMethodError:org.apache.ibatis.reflection ...
- springboot 配置jpa启动报Error processing condition on org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration.pageableCustomizer
springboot +gradle 配置jpa启动报Error processing condition on org.springframework.boot.autoconfigure.data ...
随机推荐
- Centos7 安装Jenkins (rpm 方式)
首先说明本教程基于jenkins 2.183,但是其他版本基本差不多,主要说一下其中比较坑的几点,做一个总结. 1.rpm 包的下载 从官网上下载rpm的速度简直让人不能忍受,所以千万不要去官网下载. ...
- gitlab不能启动了
gitlab意外停止后不能启动,执行gitlab-ctl start 提示全部启动失败. GitLab won’t start – runsv not running. Gitlab didn’t s ...
- kali linux eth0网卡不见了上不了网
不知道什么原因,我的虚拟机上的kali linux 下载了vsftpd重启后,就连不上网了 ifconfig后 发现eth0网卡不见了此时可以使用 ifconfig eth0 up 就可以使网卡重现但 ...
- 后缀数组练习4:Life Forms
有一个细节不是特别懂,然后的话细节有点多,就是挺难发现的那一种,感谢大佬的博客 1470: 后缀数组4:Life Forms poj3294 时间限制: 1 Sec 内存限制: 128 MB提交: ...
- Python 3.8.0 正式版发布,新特性初体验 全面介绍
Python 3.8.0 正式版发布,新特性初体验 北京时间 10 月 15 日,Python 官方发布了 3.8.0 正式版,该版本较 3.7 版本再次带来了多个非常实用的新特性. 赋值表达式 PE ...
- z-index神奇的失效了!!!
z-index简单介绍 首先z-index只对定位元素有效,什么是定位元素呢,也就是设置了position属性的元素,position:relative--相对定位,position:absolute ...
- centos配置LVS
LVS有三种工作模式:NAT, TUN, DR. DR是三种工作模式中性能最高的,TUN次之. 本文记录LVS/TUN和LVS/DR工作模式的配置过程. 环境: 三台CentOS 7 x64 虚拟机 ...
- LeetCode:595.大的国家
题目链接:https://leetcode-cn.com/problems/big-countries/ 题目 这里有张 World 表 +-----------------+------------ ...
- Redis之过期策略
一.设置过期时间 Redis对存储值的过期处理实际上是针对该值的键(key)处理的,即时间的设置也是设置key的有效时间.Expires字典保存了所有键的过期时间,Expires也被称为过期字段. e ...
- windows控制台,cmd,命令提示符下的基础操作
打开dos命令窗口1.win+r-->运行-->cmd 2.摁住shift+鼠标右击 选择 在此处打开命令窗口3.在磁盘某文件夹下,选择标题栏中输入框,输入cmd 回车 windows下常 ...