1. 2.10 Spring模块historical

    Spring Framework 由多个模块组成,核心层提供容器相关能力。笔记按模块整理框架的职责划分。

  2. 2.28 ApplicationListenerhistorical

    ApplicationListener 通过观察者模式处理事件,让发布者与多个监听者解耦。笔记以下工单后分别发邮件、写日志等场景说明使用。

  3. 2.29 Bean作用域historical

    Singleton 作用域每次从容器返回同一个 Bean,prototype 则每次创建新的实例。笔记整理不同作用域的行为。

  4. 2.30 使用historical

    本文通过 HelloWorld 等示例记录 Spring AOP 的使用,展示切面配置与目标方法调用的关系。

  5. 2.31 使用historical

    本文通过 AopConfig、Calc 等代码示例记录 Spring AOP 配置,展示切面与目标对象如何配合。

  6. 2.32 Autowired原理historical

    Spring 在注册后置处理器和实例化 Bean 等阶段处理依赖注入。笔记沿 AutowiredAnnotationBeanPostProcessor 追踪 @Autowired 的实现。

  7. 2.33 Spring事务源码分析historical

    @EnableTransactionManagement 向容器导入事务管理组件。笔记从这一注解开始,追踪 Spring 事务相关对象的注册与执行。

  8. 2.44 Bean生命周期historical

    Spring Bean 先被实例化,再完成属性注入等处理。笔记按生命周期顺序整理各阶段与扩展点。

  9. 2.45 是什么historical

    AOP 在不直接修改原业务代码的情况下添加横切功能。笔记以打印日志为例,说明切面与业务逻辑如何分开。

  10. 2.46 是什么historical

    IOC 把对象创建与管理交给容器,业务代码从容器获取所需对象。笔记从手动 new 对象的方式开始,比较控制关系的变化。

  11. 2.47 Spring常用注解historical

    Spring 通过注解声明配置类、扫描组件并把对象加入 IOC 容器。笔记整理这些常用注解的作用和使用方式。

  12. 2.48 传播行为historical

    事务传播行为是Spring对数据库事务的增强特性,用来描述由某一个事务传播行为修饰的方法被嵌套进另一个方法时事务如何传播。

  13. 2.52 BeanFactoryhistorical

    BeanFactory 负责实例化、配置和管理 Bean,ApplicationContext 在此基础上提供更多能力。笔记整理容器接口之间的关系。

  14. 2.53 使用historical

    本文通过 DbConfig 与 Service 示例记录 Spring 事务的使用,展示数据源配置和事务方法之间的关系。

  15. 2.54 循环依赖historical

    假设有两个Bean,Bean1和Bean2,如果Bean1依赖Bean2,Bean2依赖Bean1。 那么Spring创建Bean1的时候需要先创建Bean2,创建Bean2又需要先创建Bean1,这就叫做循环依赖。

  16. 2.55 Spring中如何让A和B两个bean按顺序加载historical

    本文通过 Controller 与 Service 的示例,观察 Spring 中两个 Bean 的加载关系,以及如何控制它们的初始化顺序。

  17. 2.62 1.创建spring容器historical

    创建 Spring 容器会触发 refresh 流程。笔记从 ApplicationContext 的创建开始,追踪容器初始化与 Bean 获取过程。

  18. 2.68 2.调用BeanFactoryPostProcessor的postProcess方法historical

    Spring 容器刷新时会调用 BeanFactoryPostProcessor。笔记从 invokeBeanFactoryPostProcessors 开始,追踪这些处理器的执行过程。

  19. 2.73 3.注册BeanPostProcessorhistorical

    Spring 通过 registerBeanPostProcessors 把 Bean 后置处理器注册到容器中。笔记沿相关委托方法追踪注册过程。

  20. 2.76 4.实例化所有非懒加载的单实例beanhistorical

    FinishBeanFactoryInitialization 阶段会实例化非懒加载的单例 Bean。笔记重点追踪 preInstantiateSingletons 的执行。

  21. 2.78 uml图historical

    本文通过 UML 图梳理 Spring IOC 相关类之间的关系,作为阅读容器源码时的结构参考。

  22. 2.83 1.给容器中注入AspectJAnnotationAutoProxyCreator组件historical

    开启 @EnableAspectJAutoProxy 后,Spring 会导入 AOP 相关组件。笔记从注解源码开始追踪自动代理创建器的注册。

  23. 2.84 2.1AnnotationAwareAspectJAutoProxyCreator_Bean实例是如何创建的historical

    AnnotationAwareAspectJAutoProxyCreator 既是 Bean 后置处理器,也实现 BeanFactoryAware。笔记通过断点查看它的实例化与初始化。

  24. 2.85 Spring_AOP源码分析总结historical

    Spring AOP 自动代理创建器参与 Bean 的初始化,并在适当阶段生成代理。本文汇总相关接口与调用关系。

  25. 2.90 2.2AnnotationAwareAspectJAutoProxyCreator是在什么时候起作用的historical

    本文从 Bean 初始化前后的断点出发,观察 AnnotationAwareAspectJAutoProxyCreator 在 Bean 生命周期中何时参与处理。

  26. 2.94 2.3AnnotationAwareAspectJAutoProxyCreator具体是怎么创建代理对象的historical

    本文沿目标 Bean 的创建过程追踪自动代理创建器,观察 Spring 如何检查切面并生成代理对象。

  27. 2.96 2.4目标方法是怎么执行的historical

    目标方法被代理后,调用会进入拦截器。笔记从 CglibAopProxy 的 intercept 方法开始,追踪拦截器链和目标执行。