• Phillip Webb's avatar
    Support multi-profile YAML in application-* files · c6bf13c0
    Phillip Webb authored
    Update ConfigFileEnvironmentPostProcessor to load profile specific
    sections for all previously processed profiles. Prior to this commit
    multi-profile YAML files were only loaded from the root
    `application.yml` file.
    
    With the updated logic, an `application-test.yml` file containing the
    following:
    
    	someTestProperty: xyz
    	---
    	spring:
    	  profiles: profile1
    	  specificProperty: one
    
    Can have the profile sub-document loaded using:
    
    	-Dspring.profiles.active=test,profile1
    
    Fixes gh-4132
    c6bf13c0
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...