zoukankan      html  css  js  c++  java
  • Spring框架下PropertyPlaceholderConfigurer类配置roperties文件

    1.网址

    http://blog.163.com/wchao226@126/blog/static/69514819201051742718830/

    http://thomaslee007.iteye.com/blog/167762

    2.例子

    spring配置文件

        <bean id="placeholderConfig"
            class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
            <property name="order" value="1" />
            <property name="ignoreUnresolvablePlaceholders" value="true" />
            <property name="locations">
                <list>
                    <value>classpath:xxx.properties</value> 
                </list>
            </property>
        </bean>

    xxx.properties

    task.parallel.max=10

    使用:

    <bean id="XXXAction" class="" scope="prototype">
      <property name="xxx" value="${task.parallel.max}"></property>
    </bean>
    

      

  • 相关阅读:
    array_unshift() 、
    readfile() 函数
    Java的异常处理
    Java 接口
    Java 抽象类
    final关键字
    statice关键字
    dom查询
    JS 正则表达式
    JS对象
  • 原文地址:https://www.cnblogs.com/sj521/p/5368335.html
Copyright © 2011-2022 走看看