title: Can Spring Boot merge local profile with a bundled profile of the same name?
body: <p>Spring Boot can bundle external application configuration and profile overrides in <code>src/main/resources/</code>. Additional profiles can be loaded from the file system at runtime.</p>
  
  <p>Given bundled configuration files</p>
  
  <pre><code>src/main/resources
  ├── application.yml
  └── application-prod.yml
  </code></pre>
  
  <p>and local configuration</p>
  
  <pre><code>config
  └── application-prod.yml
  </code></pre>
  
  <p>can Spring <em>reliably</em> merge the <code>prod</code> profile? If so, what are the conflict resolution rules?</p>
  
  <p>The documentation details profiles in general and bundled versus local configuration but does not seem to address the case where a selected profile has both bundled and local configuration.</p>
  
  <p><a href="https://docs.spring.io/spring-boot/docs/2.1.3.RELEASE/reference/html/boot-features-external-config.html#boot-features-external-config-application-property-files" rel="nofollow noreferrer">Relevant Spring Boot 2.1.3 documentation</a></p>