SSM整合

           SSM整合笔记

控制层-Springmvc:  web.xml     springmvc.xml

业务层-Spring aop,事务:applicationContext-transaction.xml

持久层-mybatismybatis-config.xml ,  db.properties,

               applicationContext-mapper.xml

Spring:   web.xml 监听器加载

一:建库建表

二:新建项目,导入jar

;创建项目结构

四:整合mybatis

  1. 创建mybatis-config.xml  :别名

 

2.创建数据库信息 db.propertis

3.创建applicationContext-mapper.xml

   

 五:配置业务层的事务

创建applicationContext-transaction.xml

 

 六:整合SpringMVCSpring

  1.  web.xml 监听器加载spring 配置

      

 2.配置springMVCDispactherServlet

     

3.配置 springmvc.xml文件

七:测试

 

 

          

              

原文地址:https://www.cnblogs.com/lxn521/p/12558436.html