1.bean作用域的单例模式 (默认机制)
<bean id="address" class="com.qq.Address" scope="singleton">
<property name= "addr" value="Melbourne"/>
</bean>
2.原型模式
<bean id="address" class="com.qq.Address" scope="prototype">
<property name= "addr" value="Melbourne"/>
</bean>