一 创建模块common
1 创建模块
在guli_parent下创建普通maven模块
Group:com.atguigu
Artifact:common
2 删除src目录
因为该模块不涉及代码,所以可以将该目录删除。
3 配置pom
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- mybatis-plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
</dependency>
<!-- lombok用来简化实体类:需要安装lombok插件 -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- swagger -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
</dependencies>
二 创建模块common_util
在 common 模块下创建普通maven模块
Group:com.atguigu
Artifact:common_util
注意:项目路径
三 创建模块service_base
1 创建模块
在 common 下创建普通maven模块
Group:com.atguigu
Artifact:service_base
注意:项目路径
2 配置pom
<!-- 引入 common_util 依赖 -->
<dependencies>
<dependency>
<groupId>com.atguigu</groupId>
<artifactId>common_util</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
</dependencies>