Update Javadoc for @⁠ComponentScan regarding local overrides

See gh-31704
This commit is contained in:
Sam Brannen 2023-12-06 18:00:37 +01:00
parent 2e5d1daeff
commit 7a221eb581
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ import org.springframework.core.type.filter.TypeFilter;
* annotation. {@code @ComponentScan} may also be used as a <em>meta-annotation</em>
* to create custom <em>composed annotations</em> with attribute overrides.
*
* <p>Locally declared {@code @ComponentScan} annotations always take precedence
* over and effectively <em>hide</em> {@code @ComponentScan} meta-annotations,
* which allows explicit local configuration to override configuration that is
* <em>meta-present</em> (including composed annotations meta-annotated with
* {@code @ComponentScan}).
*
* @author Chris Beams
* @author Juergen Hoeller
* @author Sam Brannen