- database
- Create a maven project - to create a maven skeleton
- Package guide - ssm - Pom.xml
- Create a directory structure - based hierarchical development mvc
Bean – dao – service - controller
- According to the database to write bean
- To write dao (dao; impl)
- Because Mybatis instead daoImpl, so go to configure Spring + Mybatis profile - ApplicationContext.xml
- Spring – 【→bean - dao(impl) - service(impl) - controller - 页面← 】
- Write mapper.xml
- Writing service (service + impl)
- Configure Spring - MVC.xml and web.xml
- Import Page
- Write Controller
Create a file