1、新建一个project

idea创建springboot多模块

idea创建springboot多模块
什么都不选,下一步
idea创建springboot多模块

2、新建module

idea创建springboot多模块
idea创建springboot多模块

一路下一步,此时的目录格式如下
idea创建springboot多模块

3、修改springboot-web下面的pom.xml

新增
idea创建springboot多模块

4、修改email-service下面的pom.xml

idea创建springboot多模块

5、测试是否配置成功

idea创建springboot多模块
若出现下图所示,则表示成功

idea创建springboot多模块

6、删除多余的文件

idea创建springboot多模块
将选中的文件删除即可

相关文章: