I am trying to override defaults found in my war file using a local properties file on the box I am deploying on.
<context:property-placeholder
location="classpath*:*.properties, file:/var/myfolder/local.properties"
ignore-resource-not-found="true"
ignore-unresolvable="true" />
I’ve seen that this can be achieved by providing a file as the second location (comma separated). Unfortunately, it doesn’t seem to overwrite the properties.
I have tried defining the bean and setting locations using properties, but that didn’t work either.
One approach is to separate them into two and use order
lowest order takes precedence