From 6f4978de17681195d418fedf52bd390c3eefe9b0 Mon Sep 17 00:00:00 2001 From: Michal Domagala Date: Sun, 5 Oct 2025 16:03:00 +0200 Subject: [PATCH] Clarify TestPropertySource location multi-document limitations Signed-off-by: michaldo --- .../modules/reference/pages/features/external-config.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc index 95edc9c3948d..1e004cf14b55 100644 --- a/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc +++ b/documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/external-config.adoc @@ -46,6 +46,9 @@ See xref:features/external-config.adoc#features.external-config.typesafe-configu NOTE: If your application runs in a servlet container or application server, then JNDI properties (in `java:comp/env`) or servlet context initialization parameters can be used instead of, or as well as, environment variables or system properties. +NOTE: javadoc:org.springframework.test.context.TestPropertySource[format=annotation] `locations` attribute does not support multi-document files. + + To provide a concrete example, suppose you develop a javadoc:org.springframework.stereotype.Component[format=annotation] that uses a `name` property, as shown in the following example: include-code::MyBean[]