码迷,mamicode.com
首页 > 编程语言 > 详细

Spring配置List和Dictionary

时间:2014-09-10 13:57:10      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:http   os   io   ar   cti   sp   log   on   c   

1、List:

<object name="IOrderService" type="XX.XXX.XXX.BLL.Orders.OrderService, XX.XXX.XXX.BLL">
    <property name="ProductService" ref="IProductService" />
    <property name="CancelOrderStayDao" ref="CancelOrderStayDao" />
    <property name="CacheService" ref="MemcachedService" />
    <property name="BanedChangeShippingSkuList">
      <list>
        <value>331</value>
        <value>334</value>
        <value>972</value>
        <value>0</value>
      </list>
    </property>
  </object>

 

2、Dictionary:

  <!-- AppSettings设置信息 -->
  <object id="AppSettings" type="XXXX.Passport.Common.Settings.AppSettings, XXXX.Passport.Common">
    <property name="EmailFrom" value="${EmailFrom}"/>
    <property name="MssUserName" value="${MSS_Clinet}"/>
    <property name="LoginHelpUrl" value="${LoginHelpUrl}"/>
    <property name="UserName" value="${UserName}"/>
    <property name="Password" value="${Password}"/>
    <property name="Host" value="${Host}"/>
    <property name="GlobalResourcesAddress" value="${GlobalResourcesAddress}"/>
    <property name="PassportDomain" value="${PassportDomain}"/>
    <property name="CookieDomain" value="${CookieDomain}"/>
    <property name="TimeZoneShift" value="${TimeZoneShift}"/>
    <property name="RegisterViewDetailUrl" value="${RegisterViewDetailUrl}"/>
    <property name="CMSBannerKey" value="${CMSBannerKey}"/>
    <property name="ShowOldPassportLink" value="${ShowOldPassportLink}"/>
    <property name="EmailServerList">
      <dictionary key-type="string" value-type="string">
        <entry key="qq.com" value="http://mail.qq.com" />
        <entry key="163.com" value="http://mail.163.com" />
        <entry key="126.com" value="http://mail.126.com" />
        <entry key="gmail.com" value="http://mail.google.com" />
        <entry key="hotmail.com" value="http://mail.hotmail.com" />
        <entry key="live.com" value="http://mail.live.com" />
        <entry key="yahoo.com" value="http://mail.yahoo.com" />
        <entry key="aol.com" value="http://mail.aol.com" />
        <entry key="mail.ru" value="http://mail.mail.ru" />
        <entry key="yandex.ru" value="http://mail.yandex.ru" />
        <entry key="foxmail.com" value="http://mail.foxmail.com" />
        <entry key="yeah.net" value="http://mail.yeah.net" />
        <entry key="sina.com" value="http://mail.sina.com" />
        <entry key="sina.cn" value="http://mail.sina.cn" />
        <entry key="sohu.com" value="http://mail.sohu.com" />
        <entry key="hongkong.com" value="http://mail.hongkong.com" />
        <entry key="mail.com" value="http://mail.com" />
        <entry key="lycos.com" value="http://mail.lycos.com" />
        <entry key="icqmail.com" value="http://www.icqmail.com" />
        <entry key="e-mail.ru" value="http://e-mail.ru/" />
        <entry key="firstname.com" value="http://www.firstname.com" />
        <entry key="onebox.com" value="http://www.onebox.com/" />
        <entry key="germanmail.com" value="http://www.germanmail.com/" />
        <entry key="vsnl.com" value="http://login.vsnl.com/" />
      </dictionary>
    </property>
  </object>

Spring配置List和Dictionary

标签:http   os   io   ar   cti   sp   log   on   c   

原文地址:http://www.cnblogs.com/cxzdy/p/3964195.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!