Warn against using multi-document files with TestPropertySource

Closes gh-24945
This commit is contained in:
Madhura Bhave 2021-03-04 14:46:59 -08:00
parent cfac223cff
commit ae630e03ce
1 changed files with 2 additions and 0 deletions

View File

@ -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 <<boot-features-external-config-file-activation-properties, next section>> for details.
WARNING: Multi-document property files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
[[boot-features-external-config-file-activation-properties]]