spring框架中xml文件读取properties中动态配置的属性

id="configproperties_no_reloadable_disconf"
   class="com.baidu.disconf.client.addons.properties.ReloadablePropertiesFactoryBean">
   name="locations">
      
         config/connects.properties
         config/zookeeper.properties
         config/other.properties
         
         
         
      
   
或者:

<context:property-placeholder location="classpath:jdbc.properties"/>

或者:

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

你可能感兴趣的:(springMVC)