mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Clarify scope of "@SpringBootTest#classes"
See gh-18229
This commit is contained in:
parent
c5e14a89b1
commit
e4ba6049ff
@ -94,7 +94,7 @@ public @interface SpringBootTest {
|
||||
String[] properties() default {};
|
||||
|
||||
/**
|
||||
* The <em>annotated classes</em> to use for loading an
|
||||
* The <em>component classes</em> to use for loading an
|
||||
* {@link org.springframework.context.ApplicationContext ApplicationContext}. Can also
|
||||
* be specified using
|
||||
* {@link ContextConfiguration#classes() @ContextConfiguration(classes=...)}. If no
|
||||
@ -102,7 +102,7 @@ public @interface SpringBootTest {
|
||||
* {@link Configuration @Configuration} classes, before falling back to a
|
||||
* {@link SpringBootConfiguration} search.
|
||||
* @see ContextConfiguration#classes()
|
||||
* @return the annotated classes used to load the application context
|
||||
* @return the component classes used to load the application context
|
||||
*/
|
||||
Class<?>[] classes() default {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user