接上篇文章http://blog.csdn.net/qq_37372909/article/details/79441678
把里面的继承
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
</parent>
替换为
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
后记:为什么要把继承替换为依赖呢?主要是因为实际项目往往都定义了自己的父工程的,不能再继承springboot了。