diff --git a/spring-context/src/main/java/org/springframework/context/annotation/Configuration.java b/spring-context/src/main/java/org/springframework/context/annotation/Configuration.java index 17633580bd8..74641040877 100644 --- a/spring-context/src/main/java/org/springframework/context/annotation/Configuration.java +++ b/spring-context/src/main/java/org/springframework/context/annotation/Configuration.java @@ -83,12 +83,13 @@ import org.springframework.stereotype.Component; * *

Via component scanning

* - *

{@code @Configuration} is meta-annotated with {@link Component @Component}, therefore - * {@code @Configuration} classes are candidates for component scanning (typically using - * Spring XML's {@code } element) and therefore may also take + *

Since {@code @Configuration} is meta-annotated with {@link Component @Component}, + * {@code @Configuration} classes are candidates for component scanning — + * for example, using {@link ComponentScan @ComponentScan} or Spring XML's + * {@code } element — and therefore may also take * advantage of {@link Autowired @Autowired}/{@link jakarta.inject.Inject @Inject} - * like any regular {@code @Component}. In particular, if a single constructor is present - * autowiring semantics will be applied transparently for that constructor: + * like any regular {@code @Component}. In particular, if a single constructor is + * present, autowiring semantics will be applied transparently for that constructor: * *

  * @Configuration