阅读背景:

Spring框架学习笔记-方法注入_编程使我快乐

来源:互联网 

1.singleton与prototype作用域

<bean id="person1"  class="com.bean.life.Person">
    <property name="name">
        <value>小明</value>
    </property>
</bean>
<bean id="person2"  class="com.bean.life.Person">
    <property name="name">
        <value>小红</value>
    </property>
</bean>
<bean id="per



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: