📜  如何使用@predestroy - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:33.730000             🧑  作者: Mango

代码示例1
A method annotated with @PreDestroy runs only once, just before Spring removes our bean from the application context.