Spring - how to override internal config file with external file
<p>In my spring project I'm having two different conf files which have the same properties.</p>

<p>One of them is in an external directory while the other one is inside the resource of my project.</p>

<p>I want that the external file's properties to override the internal values (if they exist in the external file).</p>

<p>In my configuration class I set the files with the PropertySource annotation: </p>

<pre><code>@PropertySources(
{ @PropertySource("file:${HOME}/conf/application.properties"),  
  @PropertySource("classpath:/data.properties")  
})
</code></pre>