我需要根据给定的系统属性加载特定的applicationContext.xml文件.这本身会加载具有实际配置的文件.因此,我需要2个PropertyPlaceHolderConfigurer,一个解析系统参数,另一个解析实际配置.
任何想法如何做到这一点?
我有2个属性文件.我已经提到了这两个文件context:property-placeholder......
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
我也尝试过这个
<context:property-placeholder location="conf/ConfServer.conf,conf/LicenseSettings.properties" />
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations">
        <list>
            <value>conf/LicenseSettings.properties</value>
        </list>
    </property>
   <property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
我尝试的上述两种方法都不起作用.
任何人都可以发现错误并帮助我解决这个问题吗?
我已经提到了这一点,但它对我没有用.
我有一个关于Mule的上下文属性占位符的问题,我有两个文件设置如下:
<context:property-placeholder location="classpath:mule-app-1.properties, file:///etc/mule/conf/mule-app-2.properties" /> 
首先这是一个有效的配置,其次哪个文件优先于另一个?app1或app2文件?
-S