Spring
文章平均质量分 67
CD_城市
这个作者很懒,什么都没留下…
展开
-
Spring配置中出现的集合
Spring配置文件的可能使用的集合List,Map,Set,properties <bean id="XXX" class="XXX.XXX"> <!-- Properties--> <property name="xxx"> <props> <prop key="x原创 2011-07-04 11:51:56 · 86 阅读 · 0 评论 -
Spring:bean的作用域(singleton & Prototype )
bean的作用域: 一. singleton : 在每个Spring IoC容器中一个bean定义对应一个对象实例。 当一个bean的作用域为singleton, 那么Spring IoC容器中只会存在一个共享的bean实例,并且所有对bean的 请求,只要id与该bean定义相匹配,则只会返回bean的同一实例。换言之,当把一个bean定义设置为singl...原创 2011-07-04 13:37:35 · 142 阅读 · 0 评论