title: Spring: exclude some properties files from context
body: <p>suppose we have some jars with properties files with the same key/values.</p>
  <p>configA.jar:
  log4j.A.properties</p>
  <p>configB.jar:
  log4j.B.properties</p>
  <p>The problem: Spring mixes values from the both properties files. So, how to exclude log4j.A.properties from the context and process only log4j.B.properties?</p>
  <p>UPDATE (added some stuff): there is a maven build which produces two jars mentioned above. Here in webapp (applicationContext.xml) following setup:</p>
  <pre><code>&lt;util:properties id=&quot;propertyConfigurer&quot; location=&quot;classpath:common.properties,classpath*:edrive.properties,classpath*:job.properties,classpath*:log4j.B.properties&quot;/&gt;
  </code></pre>
  <p>After the startup Spring mixes both jars and takes random (or the last one) jar and it's log4j.properties. But we need only the log4j.B.properties. How to do that?</p>