spring中bean的设计模式

默认的是单例的.
如果不想单例需要如下配置:
<bean id="user" class="..." singleton="false"/>

原文地址:https://www.cnblogs.com/dyllove98/p/3151174.html