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 6b9bd448d25..eb38609aa7e 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 @@ -28,13 +28,16 @@ import org.springframework.core.annotation.AliasFor; import org.springframework.core.type.filter.TypeFilter; /** - * Configures component scanning directives for use with @{@link Configuration} classes. - * Provides support parallel with Spring XML's {@code } element. + * Configures component scanning directives for use with {@link Configuration @Configuration} + * classes. + * + *

Provides support comparable to Spring's {@code } + * XML namespace element. * *

Either {@link #basePackageClasses} or {@link #basePackages} (or its alias * {@link #value}) may be specified to define specific packages to scan. If specific - * packages are not defined, scanning will occur from the package of the - * class that declares this annotation. + * packages are not defined, scanning will occur recursively beginning with the + * package of the class that declares this annotation. * *

Note that the {@code } element has an * {@code annotation-config} attribute; however, this annotation does not. This is because