Spring框架的相关依赖

Spring的框架结构如图:

  

Core Container(4个核心依赖 core bean context spel)

  

Test(测试模块  junit与test整合)

  

  可用 spring-test 的

    @ContextConfiguration("classpath:spring.xml") 代替

    new ClassPathXmlApplicationContext("spring.xml")

    重点:classpath

  

Aop + Aspects (切面编程,关键词:切点pointcut、通知advice)

  底层实现:JDK动态代理 + CGLIB字节码增强

  

JDBC 

  

 Mybatis

  

SpringMVC

  

 配置Spring随Tomcat应用启动(web.xml)

  1、基于监听器Listener

  

  2、基于SpringMVC的DispatcherServlet组件

  

SSH

  

  

  

  

  

  

 

 

 

  

 

posted @ 2019-05-18 10:47  Wrestle  阅读(421)  评论(0编辑  收藏  举报