- 创建子模块
![](https://file.jishuzhan.net/article/1778044414141140994/f3183975ef6f15ac7b940dc1dcf060b9.webp)
- 修改父模块 pom 文件
添加如下内容
xml
<packaging>pom</packaging>
<modules>
<module>mybatisconf</module>
</modules>
![](https://file.jishuzhan.net/article/1778044414141140994/03b33d06a48d846601917b2d6145b212.webp)
- 修改子模块 pom 文件
xml
<parent>
<groupId>com.vazquez</groupId>
<artifactId>bootstudy</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
![](https://file.jishuzhan.net/article/1778044414141140994/3b71468c7b8e8b70bfad2cc395796720.webp)