• Phillip Webb's avatar
    Fix property ordering within '.' and '/config' · 7396e1e7
    Phillip Webb authored
    Allow groups to be used with standard locations so that order of
    profile-specific files is consistent.
    
    Prior to this commit, the default search locations considered for
    application properties/yaml files was the following:
    
    	optional:classpath:/
    	optional:classpath:/config/
    	optional:file:./
    	optional:file:./config/
    	optional:file:./config/*/
    
    Each of these locations was independent which could cause confusion
    if certain combinations were used. For example, if profile-specific
    files were added to `classpath:/` and `classpath:/config/` then the
    latter would always override the former regardless of the profile
    ordering.
    
    This commit updates `StandardConfigDataLocationResolver` so that a
    group of locations can be specified for each item. This allows us to
    define the following set of search locations which provide more logical
    ordering for profile-specific files
    
    	optional:classpath:/;optional:classpath:/config/
    	optional:file:./;optional:file:./config/;optional:file:./config/*/
    
    Closes gh-26593
    7396e1e7
Name
Last commit
Last update
..
appendix-application-properties.adoc Loading commit data...
appendix-auto-configuration-classes.adoc Loading commit data...
appendix-configuration-metadata.adoc Loading commit data...
appendix-dependency-versions.adoc Loading commit data...
appendix-executable-jar-format.adoc Loading commit data...
appendix-test-auto-configuration.adoc Loading commit data...
attributes.adoc Loading commit data...
authors.adoc Loading commit data...
build-tool-plugins.adoc Loading commit data...
deployment.adoc Loading commit data...
documentation-overview.adoc Loading commit data...
getting-started.adoc Loading commit data...
howto.adoc Loading commit data...
index-docinfo.xml Loading commit data...
index.adoc Loading commit data...
index.singleadoc Loading commit data...
legal.adoc Loading commit data...
production-ready-features.adoc Loading commit data...
spring-boot-cli.adoc Loading commit data...
spring-boot-features.adoc Loading commit data...
using-spring-boot.adoc Loading commit data...