From 8f91fc450dddec086c1d1df253020d9c308e9b20 Mon Sep 17 00:00:00 2001 From: deb-von-seggern Date: Fri, 1 Oct 2021 15:19:12 -0700 Subject: [PATCH 1/2] Update configtree docs about dot notation being correctly mapped See gh-28170 --- .../src/docs/asciidoc/spring-boot-features.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index c0d722aedf..fe72e09163 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -887,6 +887,8 @@ 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. + 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. From 61736e9958755ac70d804599728cd8345ec458d3 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 5 Oct 2021 15:43:20 -0700 Subject: [PATCH 2/2] Polish " Update configtree docs about dot notation being correctly mapped" See gh-28170 --- .../spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index fe72e09163..7944a92229 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -888,6 +888,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. 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.