Commit ae630e03 authored by Madhura Bhave's avatar Madhura Bhave

Warn against using multi-document files with TestPropertySource

Closes gh-24945
parent cfac223c
...@@ -942,6 +942,8 @@ The lines immediately before and after the separator must not be comments. ...@@ -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`. 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. 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]] [[boot-features-external-config-file-activation-properties]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment