diff --git a/spring-context/src/main/java/org/springframework/context/annotation/ComponentScan.java b/spring-context/src/main/java/org/springframework/context/annotation/ComponentScan.java index eb38609aa7e..0437a3c325e 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/ComponentScan.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/ComponentScan.java @@ -53,6 +53,12 @@ import org.springframework.core.type.filter.TypeFilter; * annotation. {@code @ComponentScan} may also be used as a meta-annotation * to create custom composed annotations with attribute overrides. * + *
Locally declared {@code @ComponentScan} annotations always take precedence + * over and effectively hide {@code @ComponentScan} meta-annotations, + * which allows explicit local configuration to override configuration that is + * meta-present (including composed annotations meta-annotated with + * {@code @ComponentScan}). + * * @author Chris Beams * @author Juergen Hoeller * @author Sam Brannen