Update @PropertySource Javadoc regarding resource patterns
See gh-21325
This commit is contained in:
@@ -184,13 +184,14 @@ public @interface PropertySource {
|
||||
* <p>The default {@link #factory() factory} supports both traditional and
|
||||
* XML-based properties file formats — 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 resource.
|
||||
* <p>${...} placeholders will be resolved against property sources already
|
||||
* <p>As of Spring Framework 6.1, resource location wildcards are also
|
||||
* supported — for example, {@code "classpath*:/config/*.properties"}.
|
||||
* <p>{@code ${...}} placeholders will be resolved against property sources already
|
||||
* registered with the {@code Environment}. See {@linkplain PropertySource above}
|
||||
* for examples.
|
||||
* <p>Each location will be added to the enclosing {@code Environment} as its own
|
||||
* property source, and in the order declared.
|
||||
* property source, and in the order declared (or in the order in which resource
|
||||
* locations are resolved when location wildcards are used).
|
||||
*/
|
||||
String[] value();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user