Before I start, I have already read this and this, and still could not figure out the issue.
I have a Spring application (you'll realise soon that my Spring knowledge is not very extensive) and four different environments (test, production...). Before, my properties file used in the PropertyPlaceholderConfigurer was identical for all of them. But now I want to change it so every environment has slightly different properties. To do so, I have added an environment variable to the value so it grabs the right properties file in servlet.xml.
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:circuitbreaker.properties</value>
<value>classpath:${environment}.trackinganonymisation.properties</value>
<value>classpath:runtime.properties</value>
</list>
</property>
</bean>
My question is: where do I set the environment variable so I get it to be populated with the environment value?