zoukankan      html  css  js  c++  java
  • application.xml中配置文件properties导入

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

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

    这样之后可以在其中使用properties中的属性,通过${}的方式引入。

  • 相关阅读:
    jQuery(2)
    jQuery(1)
    underscore.js
    面向对象复习
    1.14函数复习
    面向对象(3)继承
    10.18
    1017
    js笔记二
    js笔记一
  • 原文地址:https://www.cnblogs.com/eer123/p/9468059.html
Copyright © 2011-2022 走看看