Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)

Which two statements are correct regarding the @EnableAutoConfiguration annotation? (Choose two.)
A . It is a meta-annotation on the @SpringBootApplication composed annotation.
B . It enables auto-configuration of the ApplicationContext by attempting to guess necessary beans.
C . It is meta-annotation on the @SpringBootConfiguration composed annotation.
D . It has the same effect regardless of the package of the class that is annotated with it.
E . It ensures auto-configuration is applied before user-defined beans have been registered.

Answer: AB

Explanation:

Enable auto-configuration of the Spring Application Context, attempting to guess and configure beans that you are likely to need https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/EnableAutoConfiguration.html

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments