I have the following property file defined in one of my Spring (3.1) XMLs:
<context:property-placeholder location="classpath:MyConfigFile.properties"/>
I want to be able to define a second optional property file which will override the "MyConfigFile.properties" file and will get loaded instead of it.
In Other words I want my application to load the "MyConfigFile.properties" file, but if a "StrogerConfigFile.properties" will be available at the classpath- it will get loaded instead.
Anyone knows how it can be done using the Spring XML?
have you tried
This is a setup I use that is pretty flexible. Allows you to have basic default values directly in the xml, defaults in a properties file and overrides in another properties file.