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

          日歷

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

          搜索

          •  

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

          Posted on 2016-05-26 14:14 Milo的海域 閱讀(777) 評論(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>

          主站蜘蛛池模板: 宁国市| 龙游县| 榆社县| 威海市| 大田县| 乌海市| 扎鲁特旗| 托里县| 灵武市| 赤城县| 永康市| 启东市| 深泽县| 佛坪县| 五峰| 阿坝县| 太和县| 新巴尔虎左旗| 临夏市| 广东省| 荔浦县| 周宁县| 高清| 佛山市| 大厂| 招远市| 庆城县| 获嘉县| 柯坪县| 光山县| 新竹市| 渑池县| 旺苍县| 嘉义县| 建平县| 广德县| 平江县| 中牟县| 鹰潭市| 鄂托克前旗| 石阡县|