mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Clarify the format supported by @PropertySource
Issue: SPR-16563
This commit is contained in:
+3
-2
@@ -173,8 +173,9 @@ public @interface PropertySource {
|
||||
|
||||
/**
|
||||
* Indicate the resource location(s) of the properties file to be loaded.
|
||||
* For example, {@code "classpath:/com/myco/app.properties"} or
|
||||
* {@code "file:/path/to/file"}.
|
||||
* <p>Both traditional and XML-based properties file formats are supported
|
||||
* — for example, {@code "classpath:/com/myco/app.properties"}
|
||||
* or {@code "file:/path/to/file.xml"}.
|
||||
* <p>Resource location wildcards (e.g. **/*.properties) are not permitted;
|
||||
* each location must evaluate to exactly one {@code .properties} resource.
|
||||
* <p>${...} placeholders will be resolved against any/all property sources already
|
||||
|
||||
Reference in New Issue
Block a user