Skip to content

Commit

Permalink
Warn against using multi-document files with TestPropertySource
Browse files Browse the repository at this point in the history
Closes gh-24945
  • Loading branch information
mbhave committed Mar 4, 2021
1 parent cfac223 commit ae630e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit ae630e0

Please sign in to comment.