【发布时间】:2018-04-03 13:40:13
【问题描述】:
Pom.xml
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-server-ui</artifactId>
<version>1.5.4</version>
</dependency>
@EnableAdminServer
@SpringBootApplication
public class SpringBootAdminApplication {
public static void main(String[] args) {
SpringApplication.run(SpringBootAdminApplication.class, args);
}
}
当执行 Spring Boot 服务器并给出错误为:任何帮助将不胜感激...
错误 java.lang.NoSuchMethodError:org.springframework.boot.builder.SpringApplicationBuilder.([Ljava/lang/Object;)V
【问题讨论】:
-
您遇到的错误是什么?
-
为什么会出现上述错误?虽然 Spring Boot 1.5.8.RELEASE 正在使用 Spring Boot 管理服务器 1.5.4 正常工作和构建
-
我做了很多研究,也看到了很多像你提到的链接示例。请完全卡住。请帮助...
-
对 spring-boot-parent 和 admin-ui 使用相同的版本。您在一处使用 2.0.0,在另一处使用 1.5.4
标签: spring-boot spring-boot-admin