在初始化和销毁方法中,只避免了销毁方法被执行两次,而初始化方法没有相关的判断。

作者: Whale-lyi创建于 2023年11月30日更新于 2026年6月3日

In the source code of spring-framework 5.3.x, we can see that the code has made relevant checks, as follows:

内容来源: DerekYRC/mini-spring