posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          日歷

          <2016年5月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          搜索

          •  

          最新評(píng)論

          Spring中classpath與classpath*的區(qū)別

          Posted on 2016-05-26 14:14 Milo的海域 閱讀(772) 評(píng)論(0)  編輯  收藏 所屬分類: Java
          http://stackoverflow.com/questions/3294423/spring-classpath-prefix-difference



            

          SIMPLE DEFINITION

          The classpath*:conf/appContext.xml simply means that all appContext.xml files under conf folders in all your jars on the classpath will be picked up and joined into one big application context.

          In contrast
          , classpath:conf/appContext.xml will load only one such file the first one found on your classpath.


          <bean id="propertyConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
          <property name="locations">
          <list>
          <value>classpath:*.properties</value>
          <value>classpath*:*.properties</value>
          </list>
          </property>
          </bean>

          主站蜘蛛池模板: 鹿泉市| 含山县| 西贡区| 松江区| 宁南县| 二连浩特市| 乌审旗| 丰城市| 马山县| 汕头市| 阿拉尔市| 河间市| 四子王旗| 沧州市| 杂多县| 陇川县| 华容县| 中江县| 东乡县| 高密市| 永和县| 宣威市| 江门市| 陈巴尔虎旗| 顺平县| 潼关县| 清流县| 香港 | 西贡区| 宿州市| 桐柏县| 双江| 莱芜市| 理塘县| 通辽市| 武平县| 西吉县| 兴安盟| 临朐县| 西林县| 白玉县|