有人可以解释一下Spring bean中的范围,我总是只使用'原型',但是我可以用其他参数代替吗?
我正在谈论的例子
<bean id="customerInfoController" class="com.action.Controller" scope="prototype">
<property name="accountDao" ref="accountDao"/>
<property name="utilityDao" ref="utilityDao"/>
<property name="account_usageDao" ref="account_usageDao"/>
</bean>
Run Code Online (Sandbox Code Playgroud)