Improve Javadoc for @Configuration

This commit is contained in:
Sam Brannen 2023-07-06 17:12:45 +02:00
parent 3a0e5c8894
commit d86750372a
1 changed files with 6 additions and 5 deletions

View File

@ -83,12 +83,13 @@ import org.springframework.stereotype.Component;
* *
* <h3>Via component scanning</h3> * <h3>Via component scanning</h3>
* *
* <p>{@code @Configuration} is meta-annotated with {@link Component @Component}, therefore * <p>Since {@code @Configuration} is meta-annotated with {@link Component @Component},
* {@code @Configuration} classes are candidates for component scanning (typically using * {@code @Configuration} classes are candidates for component scanning &mdash;
* Spring XML's {@code <context:component-scan/>} element) and therefore may also take * for example, using {@link ComponentScan @ComponentScan} or Spring XML's
* {@code <context:component-scan/>} element &mdash; and therefore may also take
* advantage of {@link Autowired @Autowired}/{@link jakarta.inject.Inject @Inject} * advantage of {@link Autowired @Autowired}/{@link jakarta.inject.Inject @Inject}
* like any regular {@code @Component}. In particular, if a single constructor is present * like any regular {@code @Component}. In particular, if a single constructor is
* autowiring semantics will be applied transparently for that constructor: * present, autowiring semantics will be applied transparently for that constructor:
* *
* <pre class="code"> * <pre class="code">
* &#064;Configuration * &#064;Configuration