0
点赞
收藏
分享

微信扫一扫

深入了解 Spring 各种扩展接口的执行顺序


这是 2018 年底打算写的一个小系列,不知道因为什么原因打断了计划,本系列最终也没有完全完成,但是目前提供的内容也足够去用了。

看本系列时建议下载源码边看边试
项目地址:​​​https://gitee.com/free/boot-order.git​​

深入了解 Spring 各种扩展接口的执行顺序

本项目通过实际例子来展示所有接口的执行顺序。

  1. ​​Aware 接口调用顺序​​
  2. ​​Bean 的生命周期​​
  3. ​​PostProcessor 接口调用顺序​​
  4. ​​Event​​
  5. ​​@Autowired、@Value​​
  6. LISTENER
  7. INITIALIZER

组合

  1. Aware && Bean
  2. Aware && PostProcessor
  3. Aware && Bean && PostProcessor
  4. Bean &&​​@Autowired​​​ 和​​@Value​
  5. PostProcessor &&​​@Autowired​​​ 和​​@Value​
  6. Bean && PostProcessor &&​​@Autowired​​​ 和​​@Value​


举报

相关推荐

0 条评论