2V0-72.22PSE · 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
(41 responses)- A88% (36)
- C7% (3)
- D2% (1)
- E2% (1)
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.