Annotation Interface PreDestroy


@Target(METHOD) @Retention(RUNTIME) public @interface PreDestroy
Marks a method to be called before the bean is destroyed.
标记一个方法在Bean销毁前调用。

This annotation is applied to a method that needs to be executed before the bean is removed from the container.