公司有一套自己的parent POM,用以统一各系统的依赖,所以就不方便采用Spring Boot的继承方式了
<!-- 这里是自己的父工程 -->
<parent>
<groupId>com.lifeng.springboot</groupId>
<artifactId>springboot-myparent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>springboot-three</artifactId>
<name>springboot-three</name>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.0.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependencies>
源代码:
http://git.oschina.net/lifengit/springboot3