diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index 7f8cd14676..fee7e8bb42 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -733,14 +733,20 @@ For instance, the two examples below produce the same result: [source,yaml,indent=0,configblocks] ---- -spring.config.import=my.properties -my.property=value + spring: + config: + import: my.properties + my: + property: value ---- [source,yaml,indent=0,configblocks] ---- -my.property=value -spring.config.import=my.properties + my: + property: value + spring: + config: + import: my.properties ---- In both of the above examples, the values from the `my.properties` file will take precedence over the file that triggered its import.