@ -274,7 +274,7 @@ If you have already directly xref:features/external-config.adoc#features.externa
@@ -274,7 +274,7 @@ If you have already directly xref:features/external-config.adoc#features.externa
[[features.external-config.files.importing]]
=== Importing Additional Data
Application properties may import further config data from other locations using the `spring.config.import` property.
Application properties may import further config data from other locations using the configprop:spring.config.import[] property.
Imports are processed as they are discovered, and are treated as additional documents inserted immediately below the one that declares the import.
For example, you might have the following in your classpath `application.properties` file:
@ -293,6 +293,46 @@ Values from the imported `dev.properties` will take precedence over the file tha
@@ -293,6 +293,46 @@ Values from the imported `dev.properties` will take precedence over the file tha
In the above example, the `dev.properties` could redefine `spring.application.name` to a different value.
An import will only be imported once no matter how many times it is declared.