java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder. ([Ljava

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder. ([Ljava

绿林寻猫
2021-12-08 / 0 评论 / 836 阅读 / 正在检测是否收录...

搭建spring cloud,启动时报错:

java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V

这个是版本兼容原因

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.1.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

改:

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.9.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

 

0

评论 (0)

取消