当你来到这时,很明确你的idea已经装好 maven已经配置完毕(如果没有配置maven就先去配置一下:https://blog.csdn.net/qq1808814025/article/details/112306747)
配置好以后点击打开idea->new project->Empty Project(创建空工程以便后面的多模块的创建 )
进入项目后点击左上角IntelliJ IDEA ->preferences->Build, Execution, Deployment-> Build Tools -> Maven
配置本地maven
配置完之后 右键该项目创建module :new ->moudle
若是以简单的jar方式进行打包操作如下
若是以war方式打包操作如下
打包方式war在module的pom.xml可以看到
重点!!!然后点击左上角file->project Strucyure->module->webMoven给其配置web
假若以jar方式打包的module下面存在其余module该jar方式打包的module打包方式变为pom 查看pom.xml就可以看到