Skip to content

Commit 0ab7129

Browse files
committed
Clarify treatment of nested directories for configtree with wildcards
Closes gh-28203
1 parent b978950 commit 0ab7129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ To import these properties, you can add the following to your `application.prope
385385

386386
You can then access or inject `myapp.username` and `myapp.password` properties from the `Environment` in the usual way.
387387

388-
TIP: The folders under the config tree form the property name.
388+
TIP: The names of the folders and files under the config tree form the property name.
389389
In the above example, to access the properties as `username` and `password`, you can set `spring.config.import` to `optional:configtree:/etc/config/myapp`.
390390

391391
NOTE: Filenames with dot notation are also correctly mapped.
@@ -395,6 +395,7 @@ TIP: Configuration tree values can be bound to both string `String` and `byte[]`
395395

396396
If you have multiple config trees to import from the same parent folder you can use a wildcard shortcut.
397397
Any `configtree:` location that ends with `/*/` will import all immediate children as config trees.
398+
As with a non-wildcard import, the names of the folders and files under each config tree form the property name.
398399

399400
For example, given the following volume:
400401

0 commit comments

Comments
 (0)