Skip to content

Commit d867503

Browse files
committed
Improve Javadoc for @configuration
1 parent 3a0e5c8 commit d867503

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spring-context/src/main/java/org/springframework/context/annotation/Configuration.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@
8383
*
8484
* <h3>Via component scanning</h3>
8585
*
86-
* <p>{@code @Configuration} is meta-annotated with {@link Component @Component}, therefore
87-
* {@code @Configuration} classes are candidates for component scanning (typically using
88-
* Spring XML's {@code <context:component-scan/>} element) and therefore may also take
86+
* <p>Since {@code @Configuration} is meta-annotated with {@link Component @Component},
87+
* {@code @Configuration} classes are candidates for component scanning &mdash;
88+
* for example, using {@link ComponentScan @ComponentScan} or Spring XML's
89+
* {@code <context:component-scan/>} element &mdash; and therefore may also take
8990
* advantage of {@link Autowired @Autowired}/{@link jakarta.inject.Inject @Inject}
90-
* like any regular {@code @Component}. In particular, if a single constructor is present
91-
* autowiring semantics will be applied transparently for that constructor:
91+
* like any regular {@code @Component}. In particular, if a single constructor is
92+
* present, autowiring semantics will be applied transparently for that constructor:
9293
*
9394
* <pre class="code">
9495
* &#064;Configuration

0 commit comments

Comments
 (0)