2019年10月30日

Spring IOC源码分析(二):Bean工厂体系结构设计

摘要: 一. 概述 Spring容器通常指的是ApplicationContext的体系结构设计,即整个Spring框架的IOC功能,是通过ApplicationContext接口实现类来提供给应用程序使用的。应用程序通过ApplicationContext提供方法来间接与内部Bean工厂交互,如获取Bea 阅读全文

posted @ 2019-10-30 17:21 Bertha然 阅读(346) 评论(0) 推荐(0)

Spring IOC源码分析(一):ApplicationContext体系结构设计之自底向上分析

摘要: spring-context包1. ApplicationContext接口 最顶层接口,通过继承BeanFactory接口的方法,定义了与BeanFactory的关联绑定,以及其他功能组件,如Environment,MessageSource等的关联。ApplicationContext是bean 阅读全文

posted @ 2019-10-30 17:03 Bertha然 阅读(280) 评论(0) 推荐(0)

Spring MVC源码分析(三):SpringMVC的HandlerMapping和HandlerAdapter的体系结构设计与实现

摘要: 概述在我的上一篇文章:Spring源码分析(三):DispatcherServlet的设计与实现中提到,DispatcherServlet在接收到客户端请求时,会遍历DispatcherServlet自身维护的一个HandlerMapping集合,来查找该请求对应的请求处理器,然后由该请求处理器来执 阅读全文

posted @ 2019-10-30 10:37 Bertha然 阅读(544) 评论(0) 推荐(0)

Spring MVC源码分析(二):SpringMVC的DispatcherServlet的设计与实现

摘要: 概述 DispatcherServlet是SpringMVC的一个前端控制器,是MVC架构中的C,即controller的实现,用于拦截这个web应用的所有请求,具体为在web.xml中配置这个servlet,对应的url-pattern设置为“/”,或者使用servlet3.0之后的WebAppl 阅读全文

posted @ 2019-10-30 10:04 Bertha然 阅读(328) 评论(0) 推荐(0)

Spring MVC源码分析(一):ContextLoaderListener的设计与实现

摘要: ContextLoaderListener在我的Spring源码分析(一):从哪里开始看spring源码这篇文章,分析过在web容器,如tomcat,启动web应用时,会通过监听器的方式,通知ServletContextListener,web容器开始启动web应用了,ServletContextL 阅读全文

posted @ 2019-10-30 09:47 Bertha然 阅读(517) 评论(0) 推荐(0)

导航