多模块Spring Boot项目

重构

- 调整主(父)工程类型(    <packaging>pom</packaging>)
- 创建子模块工程(<module>)
	-模型层:model
	-持久层:persistence
	-表示层:web
- 子模块依赖管理(<dependencyManagement>)

通过maven创建model、persistence、web等模块
主pom文件
在这里插入图片描述
将所需依赖引入
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_45010894/article/details/109013090