• Phillip Webb's avatar
    Provide ConfigFileApplicationListener replacement · 3352024b
    Phillip Webb authored
    Deprecate `ConfigFileApplicationListener` and provide a replacement
    mechanism that supports arbitrary config data imports.
    
    This commit updates the following areas:
    
    - Extract `EnvironmentPostProcessor` invocation logic from the
      `ConfigFileApplicationListener` to new dedicated listener. Also
      providing support for `Log` injection.
    
    - Extract `RandomPropertySource` adding logic from the
      `ConfigFileApplicationListener` to a dedicated class.
    
    - Migrate to the recently introduced `DefaultPropertiesPropertySource`
      class when moving the defaultProperties `PropertySource`
    
    - Replace processing logic with a phased approach to ensure that
      profile enablement happens in a distinct phase and that profiles
      can no longer be activated on an ad-hoc basis.
    
    - Provide a more predictable and logical import order for processing
      `application.properties` and `application.yml` files.
    
    - Add support for a `spring.config.import` property which can be used
      to import additional config data. Also provide a pluggable API
      allowing third-parties to resolve and load locations themselves.
    
    - Add `spring.config.activate.on-profile` support which replaces the
      existing `spring.profiles` property.
    
    - Add `spring.config.activate.on-cloud-platform` support which allows
      a config data document to be active only on a given cloud platform.
    
    - Support a `spring.config.use-legacy-processing` property allowing the
      previous processing logic to be used.
    
    Closes gh-22497
    Co-authored-by: 's avatarMadhura Bhave <mbhave@vmware.com>
    3352024b
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...