I have a spring mvc maven project. Currently in maven i have specified to read from an environment variable env
and take the corresponding properties files
and build the war. So the war is build with the specific environment properties beforehand and then i can deploy the war.
But what i want is that the war that is built contains all the properties for all the environments. and then when the war is ran in a server such as jetty or tomcat it picks up the correct property files based on an environment variable.
So basically it should be picked up at runTime.
Current way properties file is getting included in war :