Eclipse builds Spring+SpringMVC+Mybatis(1)

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
  1. Java environment verification

     
  2. Maven environment verification

     
  3. eclipse maven configuration

     

     
  • Building SSM with Eclipse
  1. Create a new maven project: New > Maven Project 

     
  2. Create maven-web project: maven-archtype-webapp

     
  3. Determine the package name:

     
  4. After clicking [finish], it is as follows:

     
  5. 配置本地JDK 1.7:【build path】 -【configure build path】-【Java Build Path】

     
  6. Add test resource package: src/test/resource; add it as needed

     
  7. 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;

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326265778&siteId=291194637