![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
ZPatton
这个作者很懒,什么都没留下…
展开
-
Spring Bean的生命周期
在企业级应用开发中,我们可能会使用到Spring框架,在Spring的核心中Bean是一个非常重要的概念,所以我们要想使用Spring进行开发那么就必须了解Spring中的Bean,以及Bean声明周期的各个阶段。 上图是SpringBean的生命周期图,它详细展示了SpringBean的创建->使用->销毁的过程。 下面就详细的讲述每个阶段的作用: 1.实例化Bean对象:该阶段是...原创 2019-03-23 16:32:49 · 153 阅读 · 0 评论 -
Spring Aware相关接口介绍
name ApplicationContextAware ApplicationEventPublisherAware BeanClassLoaderAware BeanFactoryAware BeanNameAware BootstrapContextAware LoadTimeWeaverAware MessageSourceAware Not...原创 2019-03-23 17:26:41 · 176 阅读 · 0 评论 -
Spring BeanPostProcessor
Bean的属性被初始化之后,我们可以通过其他方式对Bean进行一些修改,这时就使用到了BeanPostProcessor接口。 public interface BeanPostProcessor { public Object postProcessBeforeInitialization(Object bean, String name) throws BeansException; ...原创 2019-03-23 18:59:43 · 202 阅读 · 0 评论