Skip to content

Commit d1a0b8d

Browse files
committed
Clarify the format supported by @propertysource
Issue: SPR-16563
1 parent 5861e96 commit d1a0b8d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@
173173

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

0 commit comments

Comments
 (0)