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

When building spring cloud, report the following error:

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

is due to spring boot version compatibility, modified in pom.xml Configuration file, before modification:

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

Modified:

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

Then need to re-import Maven dependencies: 这里写图片描述

Then rebuild the project: 这里写图片描述

Finally restart