After working for more than a year, all the development work is based on the project framework that has been built. Today, I build a set of Maven-based SSM architecture based on the experience of others;
SSM:Spring,SpringMVC,Mybatis
- Environmental verification
- Java environment verification
- Maven environment verification
- eclipse maven configuration
- Building SSM with Eclipse
- Create a new maven project: New > Maven Project
- Create maven-web project: maven-archtype-webapp
- Determine the package name:
- After clicking [finish], it is as follows:
- 配置本地JDK 1.7:【build path】 -【configure build path】-【Java Build Path】
- Add test resource package: src/test/resource; add it as needed
- Configure pom.xml (see the attachment for details, the example contains many Java frameworks, such as: javax, Apache series, Spring, SpringMCVC, Mybatis, JSON conversion, Log log, etc.)
So far, the SSM Maven part is completed;