使用IntelliJ IDEA2018创建Maven多模块项目
一、新建个父模块(不勾选archetype)
二、然后删除src目录
然后在这个新建个web-service模块 同样不需要勾选archetype (不需要删除src 要写逻辑代码)
新建个web-app模块,这次需要勾选archetype(选择webapp选项)
引入依赖(web-service)
配置tomcat 启动项目,即可。
一、新建个父模块(不勾选archetype)
二、然后删除src目录
然后在这个新建个web-service模块 同样不需要勾选archetype (不需要删除src 要写逻辑代码)
新建个web-app模块,这次需要勾选archetype(选择webapp选项)
引入依赖(web-service)
配置tomcat 启动项目,即可。