idea中创建多模块springboot项目

1.在父模块上右键new->module

2.按照需求创建子模块,最后位置选在父模块路径下(我的父模块为traffic-master)

idea中创建多模块springboot项目_第1张图片 3.修改父模块的pom文件

 (1) 添加子模块


        traffic-api

(2)指定打包方式

pom

3.修改子模块pom文件

将子模块的修改为父模块信息


        cn.tian
        traffic-master
        0.0.1-SNAPSHOT
         

4.将模块中属性中删掉

idea中创建多模块springboot项目_第2张图片


 

下图为将不需要的文件删除后的项目结构:

idea中创建多模块springboot项目_第3张图片

你可能感兴趣的:(springboot,intellij-idea,java,springboot)