From 6641a98913902bd9ec08b3c6b729189cafc7c827 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 15 Oct 2022 14:16:03 -0700 Subject: [PATCH] Improve the phrasing around property source ordering --- .../src/docs/asciidoc/features/external-config.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc index a75e31d3b7..13a964897b 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc @@ -6,7 +6,8 @@ You can use a variety of external configuration sources, include Java properties Property values can be injected directly into your beans by using the `@Value` annotation, accessed through Spring's `Environment` abstraction, or be <> through `@ConfigurationProperties`. Spring Boot uses a very particular `PropertySource` order that is designed to allow sensible overriding of values. -Properties are considered in the following order (with values from lower items overriding earlier ones): +Later property sources can override the values defined in earlier ones. +Sources are considered in the following order: . Default properties (specified by setting `SpringApplication.setDefaultProperties`). . {spring-framework-api}/context/annotation/PropertySource.html[`@PropertySource`] annotations on your `@Configuration` classes.