Skip to content

Commit ae630e0

Browse files
committed
Warn against using multi-document files with TestPropertySource
Closes gh-24945
1 parent cfac223 commit ae630e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ The lines immediately before and after the separator must not be comments.
942942
TIP: Multi-document property files are often used in conjunction with activation properties such as `spring.config.activate.on-profile`.
943943
See the <<boot-features-external-config-file-activation-properties, next section>> for details.
944944

945+
WARNING: Multi-document property files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
946+
945947

946948

947949
[[boot-features-external-config-file-activation-properties]]

0 commit comments

Comments
 (0)