Merge pull request #28170 from dvonsegg

* pr/28170:
  Polish " Update configtree docs about dot notation being correctly mapped"
  Update configtree docs about dot notation being correctly mapped

Closes gh-28170
This commit is contained in:
Madhura Bhave
2021-10-05 15:44:14 -07:00

View File

@@ -887,6 +887,9 @@ 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.
NOTE: Filenames with dot notation are also correctly mapped.
For example, in the above example, a file named `myapp.username` in `/etc/config` would result in a `myapp.username` property in the `Environment`.
TIP: Configuration tree values can be bound to both string `String` and `byte[]` types depending on the contents expected.
If you have multiple config trees to import from the same parent folder you can use a wildcard shortcut.