2V0-72.22 · Question #53
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
The correct answer is A. It is a meta-annotation on the @SpringBootApplication composed annotation. B. It enables auto-configuration of the ApplicationContext by attempting to guess necessary. Enable auto-configuration of the Spring Application Context, attempting to guess and configure beans that you are likely to need. boot/docs/current/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html
Question
Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
Options
- AIt is a meta-annotation on the @SpringBootApplication composed annotation.
- BIt enables auto-configuration of the ApplicationContext by attempting to guess necessary
- CIt is meta-annotation on the @SpringBootConfiguration composed annotation.
- DIt has the same effect regardless of the package of the class that is annotated with it.
- EIt ensures auto-configuration is applied before user-defined beans have been registered.
How the community answered
(26 responses)- A73% (19)
- C4% (1)
- D8% (2)
- E15% (4)
Explanation
Enable auto-configuration of the Spring Application Context, attempting to guess and configure beans that you are likely to need. boot/docs/current/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html
Topics
Community Discussion
No community discussion yet for this question.