### 创建项目
1. 新建一个空白项目
2. 创建父工程
选中Maven 不要勾选任何框架->com.zf.edu common-parent

删除src 添加部分代码

3. 创建model子工程


### 新建一个model
先写字段, 然后按住快捷键生成方法(command+n 选择setting 全选 确定)

设置数据(command+n 选择toString 全选 确定)
分别创建模块edu-dao edu-service
创建后台模块(edu-manager)选择webapp
创建接口模块(edu-api)选择webapp
### 增加标识

webapp模型已经默认加了war标识
### parent抽取公共的依赖

## manager集成springMVC
manager
```
UTF-8
1.7
1.7
4.3.14.RELEASE
org.springframework
spring-aop
${spring.version}
org.springframework
spring-aspects
${spring.version}
org.springframework
spring-beans
${spring.version}
org.springframework
spring-context
${spring.version}
org.springframework
spring-core
${spring.version}
org.springframework
spring-expression
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-orm
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-test
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-webmvc
${spring.version}
```
## 配置tomcat
选中edu-manager 进行配置


## 创建一个控制器
web.xml

springmvc.xml

控制器文件

显示结果

> 更多精彩文章请关注 [王明昌博客](https://www.wangmingchang.com)