1.建立普通的maven项目作为parent项目


2.手动添加打包方式为pom

3.建立子模块tjsafety-common





4.添加子模块tjsafety-manager


5.为tjsafety-manager添加聚合子模块
5.1,添加entity(实体类)并依赖tjsafety-common


5.2,同样方式分别添加模块manager-dao(依赖manager-entity),manager-service(依赖manager-dao)


5.3,添加springboot模块tjsafety-web


刚开始的pom文件为:

修改其父项目为tjsafety-parent,同时去除版本号,将依赖移入tjsafety-parent中,依赖manager-service,修改后为:

修改:最后一个模块命名错误,应该为manager-web
最后结构:

打包运行时应该先打parent包,再打common包,最后打manager包,一共打包三次
网友评论