Related questions
Question 1 - 2V0-72.22 discussion
If a class is annotated with @Component, what should be done to have Spring automatically detect the annotated class and load it as a bean? (Choose the best answer.)
A.
Ensure a valid bean name in the @Component annotation is specified.
B.
Ensure a valid @ComponentScan annotation in the Java configuration is specified.
C.
Ensure a valid @Scope for the class is specified.
D.
Ensure a valid @Bean for the class is specified.
Your answer:
0 comments
Sorted by
Leave a comment first