We have multiple project jars that get used in different war files. So in order to compile the specific jar files, each jar's Spring context file has a property-placeholder for a file called foo.properties.
So when a war is built with 10 jars, it essentially has 10 Spring Context Files that it is loading, all with their own property-placeholder configuration for the same file.
I see in Spring the same file get loaded for each property-placeholder.
Is there a setting in Spring that if it finds a property-placeholder for a file with same name in the graph of context files, that it can ignore loading that file?
If not, which method in PropertyPlaceholderConfigurer is the best one to override and implement this functionality?