1、springMVC使用默认方式配置web,springMVC的名称要一一对应

SSM整合总结

2、@Component 注解流程 -spring

SSM整合总结

3、@resource注入流程1-spring

  SSM整合总结

@resource注入流程2-spring

SSM整合总结

4、切面定义流程

SSM整合总结

5、@Controller和@RequestMapping注解流程-spring MVC

SSM整合总结

6、视图解析器的作用:通过视图名称,找到视图。只适用容器内跳转,不适用redirect方式容器外跳转。

SSM整合总结

7、不同的数据源要导入相关的jar包

SSM整合总结

8、 DataSource 指向

SSM整合总结

9、配置SessionFactory、指明映射文件目录位置、扫描mapper接口包、注入SessionFactory

SSM整合总结

10、映射文件整体流程-主要用来写sql语句

SSM整合总结

11、对比


SSH整合配置 
    WEB-INF/web.xml                           配置 Spring  配置 struts
    src/struts.xml                                  struts配置文件
    WEB-INF/applicationContext.xml  spring和hibernate整合配置文件
    
src/hibernate.cfg.xml        hibernate配置文件连接数据源  ,多余的,可以去掉

SSM整合配置
    WEB-INF/web.xml                               配置 Spring  配置springmvc 
    WEB-INF/spring-servlet.xml              springMVC配置文件
    WEB-INF/applicationContext.xml     spring和Mybatis整合配置文件
  
 src/mybatis-config.xml         Mybatis配置文件连接数据源  ,多余的,可以去掉

相关文章: