spring-boot/spring-boot-project
Phillip Webb 3352024b1c Provide ConfigFileApplicationListener replacement
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: Madhura Bhave <mbhave@vmware.com>
2020-07-22 21:02:32 -07:00
..
spring-boot Provide ConfigFileApplicationListener replacement 2020-07-22 21:02:32 -07:00
spring-boot-actuator Update copyright year of changed files 2020-07-22 18:50:07 -07:00
spring-boot-actuator-autoconfigure Update copyright year of changed files 2020-07-22 18:50:07 -07:00
spring-boot-autoconfigure Polish 2020-07-22 18:25:27 -07:00
spring-boot-cli
spring-boot-dependencies Upgrade to Spring Integration 5.3.2 2020-07-22 21:37:39 +02:00
spring-boot-devtools Provide ConfigFileApplicationListener replacement 2020-07-22 21:02:32 -07:00
spring-boot-docs Merge branch '2.3.x' 2020-07-22 17:39:27 -07:00
spring-boot-parent
spring-boot-properties-migrator
spring-boot-starters Merge branch '2.3.x' 2020-07-21 09:32:23 +01:00
spring-boot-test Provide ConfigFileApplicationListener replacement 2020-07-22 21:02:32 -07:00
spring-boot-test-autoconfigure Merge branch '2.3.x' 2020-07-22 06:43:28 +01:00
spring-boot-tools Merge branch '2.3.x' 2020-07-22 17:39:27 -07:00