mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-05-03 03:43:54 +01:00
Warn against using multi-document files with TestPropertySource
Closes gh-24945
This commit is contained in:
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user