摘要: 一、BeanPostProcessor 主要负责bean的初始化前后进行前后置处理: 1 public interface BeanPostProcessor { 2 3 @Nullable 4 default Object postProcessBeforeInitialization(Objec 阅读全文
posted @ 2021-06-02 16:28 书剑江山 阅读(446) 评论(0) 推荐(1)
摘要: 一、介绍 从一张spring经典bean的生命周期图说起: 接口介绍: xxAware接口:包含常见的BeanFactoryAware、BeanFactoryAware、ApplicationContextAware BeanPostProcessor接口:方法postProcessBeforeIn 阅读全文
posted @ 2021-05-17 15:12 书剑江山 阅读(763) 评论(0) 推荐(0)
摘要: 验证:Please enter n:31 2 38 9 47 6 5 Please enter n:51 2 3 4 516 17 18 19 615 24 25 20 714 23 22 21 813 12 11 10 9 Please enter n:61 2 3 4 5 620 21 22 2 阅读全文
posted @ 2017-06-27 14:15 书剑江山 阅读(2432) 评论(0) 推荐(0)