Spring 学习—— Bean装配( Bean 的作用域 二)

一、Bean 的生命周期     定义 -> 初始化 -> 使用 -> 销毁 二、Bean 的初始化     1、实现 org.springframework.beans.factory.initializingBean 接口,覆盖 afterPropertiesSet 方法                  2、配置 Init-method          三、Bean 的销毁     1、实
相关文章
相关标签/搜索