springboot聚合工程如果父项目在自己公司依赖有继承,spring官网提供了另一种方式构建springboot项目,如下:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.1.6.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
在父项目中规定相对应的依赖版本,官网链接
http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-maven-without-a-parent
勿喷!
本文介绍了一种在SpringBoot聚合工程中管理依赖的方法,通过在父项目中使用<dependencyManagement>来统一管理子模块的依赖版本,避免版本冲突,提高项目的可维护性。
898

被折叠的 条评论
为什么被折叠?



