SpringBoot快速构建web项目-多模块项目
1.创建项目:learn-springboot-plus
选择maven项目,自己添加依赖,这样不会构建出多余文件
2.改pom文件
<!--表示这是一个父级项目-->
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<!--spring boot 2.2.2-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies