Skip to content

Commit d81ddce

Browse files
committed
Update documentation regarding repeatable @propertysource support
See gh-30941
1 parent 701c39a commit d81ddce

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

framework-docs/modules/ROOT/pages/core/beans/environment.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,9 @@ resolved to the corresponding value. If not, then `default/path` is used
771771
as a default. If no default is specified and a property cannot be resolved, an
772772
`IllegalArgumentException` is thrown.
773773

774-
NOTE: The `@PropertySource` annotation is repeatable, according to Java 8 conventions.
775-
However, all such `@PropertySource` annotations need to be declared at the same
776-
level, either directly on the configuration class or as meta-annotations within the
777-
same custom annotation. Mixing direct annotations and meta-annotations is not
778-
recommended, since direct annotations effectively override meta-annotations.
774+
NOTE: `@PropertySource` can be used as a repeatable annotation. `@PropertySource`
775+
may also be used as a meta-annotation to create custom composed annotations with
776+
attribute overrides.
779777

780778

781779

0 commit comments

Comments
 (0)