From ae630e03ced00e842a94a9b7ada8d205fefe0908 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 4 Mar 2021 14:46:59 -0800 Subject: [PATCH] Warn against using multi-document files with TestPropertySource Closes gh-24945 --- .../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 8da640a7ddc..3ed8953733d 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 @@ -942,6 +942,8 @@ The lines immediately before and after the separator must not be comments. TIP: Multi-document property files are often used in conjunction with activation properties such as `spring.config.activate.on-profile`. See the <> for details. +WARNING: Multi-document property files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations. + [[boot-features-external-config-file-activation-properties]]