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


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




猜你喜欢

转载自blog.csdn.net/u010509052/article/details/72872337