spring--aop 代理模式 发表于 2020-07-25 | 分类于 spring源码分析 | 1.代理模式介绍什么是代理模式?就是用一个新的对象来伪装原来的对象,从而实现一些“不可告人”的动作。 什么情况下会使用代理模式?简单来说,就是不能或者不想直接引用一个对象。什么是不能?比如我在内网中想访问外网的资源,但是因为网关的控制,访问不了。那什么是不想呢?比如我在网页上要显示一张图片,但是图片 ... 阅读全文 »
spring--ioc FactoryBean 发表于 2020-07-25 | 分类于 spring源码分析 | 在Spring的文档中是这样定义FactoryBean的: The FactoryBean interface is a point of pluggability into the Spring IoC container’s instantiation logic. If you have c ... 阅读全文 »
spring--aop AOP概念 发表于 2020-07-25 | 分类于 spring源码分析 | Spring源码-AOP(一)-代理模式 Spring源码-AOP(二)-AOP概念 Spring源码-AOP(三)-Spring AOP的四种实现 Spring源码-AOP(四)-ProxyFactory Spring源码-AOP(五)-ProxyFactoryBean Spring源码-AOP ... 阅读全文 »
SpringMVC容器初始化 ContextLoaderListener 发表于 2020-07-25 | 分类于 spring源码分析 | ContextLoaderListener的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。 web.xml配置 ContextLoaderListener UML类图 UML 时序图 createWebApplicationContext 寻找用来实例化Con ... 阅读全文 »