SSM build step

  1. database
  2. Create a maven project - to create a maven skeleton
  3.  Package guide - ssm - Pom.xml
  4.  Create a directory structure - based hierarchical development mvc

Bean – dao – service - controller 

  1. According to the database to write bean
  2. To write dao (dao; impl)
  3. Because Mybatis instead daoImpl, so go to configure Spring + Mybatis profile - ApplicationContext.xml
    1. Spring – 【→bean  - dao(impl) - service(impl) - controller  - 页面← 】
  4. Write mapper.xml
  5. Writing service (service + impl)
  6.  Configure Spring - MVC.xml and web.xml
  7.  Import Page
  8.   Write Controller

Create a file

 

Guess you like

Origin blog.csdn.net/qq_42254122/article/details/93916519