2021年10月13日
摘要: 1.单例模式(spring默认机制) <bean id="student2" class="com.pojo.Student" c:name="Tom" c:age="18" scope="singleton"></bean> 2.原型模式:每次从容器中get的时候,都会产生一个新对象! <bean 阅读全文
posted @ 2021-10-13 20:03 拾柒的 阅读(47) 评论(0) 推荐(0)