I“ve got several applications packed as jar and war files, i“m using ClassPathXmlApplicationContext to load configuration and in my xml files i“ve defined a PropertyPlaceHolderConfigurer this way:
When packaging the applications i add the requiered .properties and all works great, but this applications are going to be deployed in very diferent enviroments and i would like some way to "override" the properties files included in my jars or wars, i“ve tried to add new properties into my server lib folder wich is supossed to be in my application“s classpath and similar solutions but it is not working.<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer" lazy-init="default" autowire="default" dependency-check="default">
- <property name="locations">
Has anyone done something similar or can help me in achieve this? I“m not allowed to modify any code so i don“t know if this is even possible.