• 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
..
src Loading commit data...
application.yml Loading commit data...
build.gradle Loading commit data...