Merge branch '3.0.x' into 3.1.x

Closes gh-36810
3.1.x
Andy Wilkinson 1 year ago
commit 331e90ccbe

@ -385,7 +385,7 @@ To import these properties, you can add the following to your `application.prope
You can then access or inject `myapp.username` and `myapp.password` properties from the `Environment` in the usual way. You can then access or inject `myapp.username` and `myapp.password` properties from the `Environment` in the usual way.
TIP: The folders under the config tree form the property name. TIP: The names of the folders and files under the config tree form the property name.
In the above example, to access the properties as `username` and `password`, you can set `spring.config.import` to `optional:configtree:/etc/config/myapp`. In the above example, to access the properties as `username` and `password`, you can set `spring.config.import` to `optional:configtree:/etc/config/myapp`.
NOTE: Filenames with dot notation are also correctly mapped. 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[]`
If you have multiple config trees to import from the same parent folder you can use a wildcard shortcut. If you have multiple config trees to import from the same parent folder you can use a wildcard shortcut.
Any `configtree:` location that ends with `/*/` will import all immediate children as config trees. Any `configtree:` location that ends with `/*/` will import all immediate children as config trees.
As with a non-wildcard import, the names of the folders and files under each config tree form the property name.
For example, given the following volume: For example, given the following volume:

Loading…
Cancel
Save