spring cloud 错误记录 java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBui

具体问题截图:

原因:

使用spring boot 的版本问题,发生错误时使用的版本是2.0.0

解决办法:

将spring boot版本改为1.5.2

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

猜你喜欢

转载自blog.csdn.net/wangxi_xixi/article/details/79848116
今日推荐