I\'m trying to figure out how my Spring app can determine where it is deployed and load the appropriate datasource. We have 3 environments...my local, the development server, a
Two solutions
Have one value instead of three with a generic name and in your build configuration provide a flag which properties file should be copied to that path/filename.
Provide the properties as an VM argument while starting the server like
-Ddatasource.properties=c:\config\development.datasource.properties
and in your XML config file