Spring学习笔记之初始化和销毁方法的调用次序

Multiple lifecycle mechanisms configured for the same bean, with different initialization methods, are called as follows:

Methods annotated with @PostConstruct
    afterPropertiesSet() as defined by the InitializingBean callback interface
    A custom configured init() method

Destroy methods are called in the same order:

Methods annotated with @PreDestroy
     destroy() as defined by the DisposableBean callback interface
     A custom configured destroy() method

http://andilyliao.iteye.com/blog/1062076

上一篇:java udp socket(双通信)


下一篇:PS图层混合算法之五(饱和度,色相,颜色,亮度)