You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -274,7 +274,7 @@ If you have already directly xref:features/external-config.adoc#features.externa
274
274
[[features.external-config.files.importing]]
275
275
=== Importing Additional Data
276
276
277
-
Application properties may import further config data from other locations using the `spring.config.import` property.
277
+
Application properties may import further config data from other locations using the configprop:spring.config.import[] property.
278
278
Imports are processed as they are discovered, and are treated as additional documents inserted immediately below the one that declares the import.
279
279
280
280
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
293
In the above example, the `dev.properties` could redefine `spring.application.name` to a different value.
294
294
295
295
An import will only be imported once no matter how many times it is declared.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/StandardConfigDataLocationResolver.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/StandardConfigDataLocationResolverTests.java
0 commit comments