问答详情
源自:3-2 Spring Bean装配之Bean的生命周期

生命周期:

·定义:在xml中定义的

·初始化:1.实现initialBean接口,覆盖afterPropeertiesSet方法2.配置init_method

·使用:

·销毁:1.实现DisposableBean接口,覆盖destroy方法2.配置destroy_method

提问者:foreverwing99 2014-10-27 10:40

个回答