From f4b73da657c4312109f56e4f6759af819a880d51 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 19 Aug 2024 17:51:11 +0100 Subject: [PATCH] Document when environment variable property mapping applies Closes gh-41877 --- .../src/docs/asciidoc/features/external-config.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc index 54bad2a73525..691527bc9013 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc @@ -938,9 +938,9 @@ For example, the configuration property `spring.main.log-startup-info` would be Environment variables can also be used when binding to object lists. To bind to a `List`, the element number should be surrounded with underscores in the variable name. - For example, the configuration property `my.service[0].other` would use an environment variable named `MY_SERVICE_0_OTHER`. +Support for binding from environment variables is applied to the `systemEnvironment` property source and to any additional property source whose name ends with `-systemEnvironment`. [[features.external-config.typesafe-configuration-properties.relaxed-binding.caching]]