Spring学习总结(31)——Spring Bean 生命周期总结

1、Spring 容器中的 Bean 的完整生命周期 bean对象的实例化 封装属性,也就是设置properties中的属性值 若是bean实现了BeanNameAware,则执行setBeanName方法,也就是bean中的id值 若是实现BeanFactoryAware或者ApplicationContextAware ,须要设置setBeanFactory或者上下文对象setApplicat
相关文章
相关标签/搜索