Spring Bean Lifecycle Managerment
Spring Bean主要有两个生命周期事件(Lifecycle event):post-initialzation和pre-destruction。一旦spring完成bean全部属性值的设定,以及结束让 bean执行的依赖关系检查之后,便会触发post-initialzation事件。pre-destruction事件则在bean销毁时候触发。只有当bean为 singleton时后,上述两个生命周期事件才会触发。 继续阅读…

Recent Comments