- 一般情况下,推荐使用parent标签去继承
<parent><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>1.4.2.RELEASE</version> <!--这里不能使用标签引用,必须写死,maven的bug?--></parent>
- 如果不想用继承的方法,可以使用import
<dependencyManagement><dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-dependencies</artifactId><version>${sprint.boot.version}</version><type>pom</type><scope>import</scope></dependency></dependencies></dependencyManagement>
