We are deploying our spring application in Weblogic server of which there are 2 version and we would like to configure an Environmental variable "POST-SETTING" to a value according to the version deployed.
Version A App deployed => POST-SETTING value = "VERSION-A"
Version B App deployed => POST-SETTING value = "VERSION-B"
The variable is used by the Web logic server.
We could configure the environment variable using the "-D" option on web logic ie by
If it's a weblogic property it should be set from inside weblogic. Spring container runs inside weblogic container. Ideally, your application should be agnostic to the container that it's running in, and any container specific settings should be done in the container