title: What is the order of precedence when there are multiple Spring's environment profiles as set by spring.profiles.active
body: <p>I am just wondering what the <strong>order of precedence is when multiple Spring active profiles have been specified</strong>.</p>
  
  <p>Say I want the <code>default</code> profile to be active but the <code>dev</code> profile to override it when there are several identical elements (beans for instance) to choose from but with different profiles...</p>
  
  <p>Say for instance I have two <code>PropertySourcesPlaceholderConfigurer</code> beans configured with <code>"default"</code> and <code>"dev"</code> values a environment profiles.</p>
  
  <p>If I use the following profile activation: <code>-Dspring.profiles.active="default,dev"</code></p>
  
  <p>Will the <code>dev</code> profile override the <code>default</code> one?</p>
  
  <p>If not how can the above behavior be achieved?</p>