请注意:这是从 GitHub Spring Boot 应用程序无法启动的问题:报告错误“Caused by: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V
**我正在尝试向我尝试使用 2.0.3.RELEASE 构建的 spring 新启动应用程序添加依赖项(使用较旧的 spring boot 1.5.10.RELEASE)。
在添加依赖之前,新的 spring Boot 应用程序工作正常,但是一旦我添加了依赖项,应用程序就无法运行,尽管编译工作无缝。依赖项具有需要使用的关键业务逻辑,而不是重新编码整个事物。任何想法,有人遇到过类似的问题吗?寻求帮助会很棒...
试图了解它是否存在不兼容的版本问题,还是我遗漏了一些愚蠢的东西。
POM 文件具有以下作为依赖项的一部分。
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.0.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.sf.flexjson</groupId>
<artifactId>flexjson</artifactId>
<version>3.3</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>RELEASE</version>
</dependency>
<!-- The below internal dependency coded in SpringBoot 1.5.10-RELEASE when added causes the issue. When commented, works like fine-->
<dependency>
<groupId>au.com.server.viewpaybills</groupId>
<artifactId>viewbills-common</artifactId>
<version>0.3.35.CB</version>
</dependency>
</dependencies>
</dependencyManagement>
千巷猫影
相关分类