假設有如下定義海灘:春豆範圍原型
<bean id="singletonBean" class="...">
<property name="instanceBean" ref="instanceBean"/>
</bean>
<bean id="instanceBean" class="..." scope="prototype"/>
當我打電話:
singletonBean = context.getBean("singletonBean");
...some code...
singletonBean = context.getBean("singletonBean");
將財產singletonBean
instanceBean
重新初始化或者它只是使用已經創建的單?