锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区0,欧美综合在线观看,精品综合在线http://www.aygfsteel.com/springwang/The spring for Allzh-cnFri, 04 Jul 2025 06:08:14 GMTFri, 04 Jul 2025 06:08:14 GMT60Professional Java Development with the Spring Framework --- Containerhttp://www.aygfsteel.com/springwang/archive/2006/02/10/30164.htmlspring wangspring wangFri, 10 Feb 2006 07:42:00 GMThttp://www.aygfsteel.com/springwang/archive/2006/02/10/30164.htmlhttp://www.aygfsteel.com/springwang/comments/30164.htmlhttp://www.aygfsteel.com/springwang/archive/2006/02/10/30164.html#Feedback0http://www.aygfsteel.com/springwang/comments/commentRss/30164.htmlhttp://www.aygfsteel.com/springwang/services/trackbacks/30164.htmlThe list, set, map, and props elements allow complex properties or constructor arguments of type java.util.List, java.util.Set, java.util.Map, and java.util.Properties to be defined and set. Let's look at a completely artificial example, in which a JavaBean has a List, Set, Map, and Properties property set:

<beans>
  <bean id="collectionsExample" class="ch02.sample7.CollectionsBean">
    <property name="theList">
      <list>
        <value>red</value>
        <value>red</value>
        <value>blue</value>
        <ref local="curDate"/>
        <list>
          <value>one</value>
          <value>two</value>
          <value>three</value>
        </list>
      </list>
    </property>
    <property name="theSet">
      <set>
        <value>red</value>
        <value>red</value>
        <value>blue</value>
      </set>
    </property>
    <property name="theMap">
      <map>
        <entry key="left">
          <value>right</value>
        </entry>
        <entry key="up">
          <value>down</value>
        </entry>
        <entry key="date">
          <ref local="curDate"/>
        </entry>
      </map>
    </property>
    <property name="theProperties">
      <props>
        <prop key="left">right</prop>
        <prop key="up">down</prop>
      </props>
    </property>
  </bean>
   
  <bean id="curDate" class="java.util.GregorianCalendar"/>
</beans>

List, Map, and Set values may be any of the elements



spring wang 2006-02-10 15:42 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 嘉禾县| 马山县| 彰化县| 本溪市| 伽师县| 眉山市| 南川市| 上饶市| 望城县| 房产| 高邮市| 惠来县| 汉川市| 武平县| 潍坊市| 湖州市| 额尔古纳市| 静宁县| 琼海市| 抚州市| 辽阳县| 万全县| 合阳县| 高安市| 宁河县| 马山县| 浮山县| 永善县| 永嘉县| 侯马市| 年辖:市辖区| 贵州省| 肃北| 龙岩市| 钟祥市| 三穗县| 洛隆县| 寻甸| 满洲里市| 信丰县| 崇义县|