In some respects, the Spring container's role in regard to a
prototype-scoped bean is a replacement for the Java new
operator. All lifecycle management past that point must be handled by the
client.
Spring 容器对prototype 作用域的bean 是交给用户自己管理的。
Spring容器与Prototype作用域
本文探讨了Spring容器中prototype作用域的bean管理方式。对于此类bean,Spring容器仅负责初始化,而bean的整个生命周期及管理则交由客户端自行处理。

被折叠的 条评论
为什么被折叠?



