Nas*_*din 0 java rest spring-boot
我想在这个父项目下创建两个模块(dao和api).模块api将使用Spring Boot来恢复api.由于spring boot项目都有spring-boot-starter-parent作为父模块,如何在另一个父模块下创建子模块?我的理解是Java项目只能有一个父项.
您可以使用DependencyManagement而不是父级
不是每个人都喜欢继承spring-boot-starter-parent POM.您可能拥有自己需要使用的公司标准父级,或者您可能更愿意明确声明所有Maven配置
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.3.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1953 次 |
| 最近记录: |