Skip to content

Commit

Permalink
Update documentation regarding repeatable @propertysource support
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Aug 16, 2023
1 parent 701c39a commit d81ddce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions framework-docs/modules/ROOT/pages/core/beans/environment.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -771,11 +771,9 @@ resolved to the corresponding value. If not, then `default/path` is used
as a default. If no default is specified and a property cannot be resolved, an
`IllegalArgumentException` is thrown.

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



Expand Down

0 comments on commit d81ddce

Please sign in to comment.