一步一步学springboot (十二)不继承springboot父工程

来源:互联网 发布:java刷题app 编辑:程序博客网 时间:2024/05/21 02:51

公司有一套自己的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



阅读全文
0 0
原创粉丝点击