Clarify the format supported by @PropertySource

Issue: SPR-16563
master
Stephane Nicoll 7 years ago
parent 5861e9685b
commit d1a0b8d53f
  1. 5
      spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java

@ -173,8 +173,9 @@ public @interface PropertySource {
/** /**
* Indicate the resource location(s) of the properties file to be loaded. * Indicate the resource location(s) of the properties file to be loaded.
* For example, {@code "classpath:/com/myco/app.properties"} or * <p>Both traditional and XML-based properties file formats are supported
* {@code "file:/path/to/file"}. * &mdash; for example, {@code "classpath:/com/myco/app.properties"}
* or {@code "file:/path/to/file.xml"}.
* <p>Resource location wildcards (e.g. *&#42;/*.properties) are not permitted; * <p>Resource location wildcards (e.g. *&#42;/*.properties) are not permitted;
* each location must evaluate to exactly one {@code .properties} resource. * each location must evaluate to exactly one {@code .properties} resource.
* <p>${...} placeholders will be resolved against any/all property sources already * <p>${...} placeholders will be resolved against any/all property sources already

Loading…
Cancel
Save