I have the following properties file defined in one of my Spring (3.1) XML files:
<context:property-placeholder location="classpath:MyConfigFile.properties"/>
I want to define a second file optional , which will override the file "MyConfigFile.properties" and load instead.
In other words, I want my application to download the file "MyConfigFile.properties", but if "StrogerConfigFile.properties" is available in the class path, it will be downloaded.
Does anyone know how this can be done using Spring XML?
source share