Broadcom-VMware
2V0-72.22 · Question #1
Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)
The correct answer is A. It causes Spring Boot to enable auto-configuration by default. B. Component scanning will start from the package of the class. See the full explanation below for the reasoning.
Question
Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)
Options
- AIt causes Spring Boot to enable auto-configuration by default.
- BComponent scanning will start from the package of the class.
- CAll other annotations on the class will be ignored.
- DMethods in the class annotated with @Bean will be ignored.
- EA separate ApplicationContext will be created for each class annotated with
How the community answered
(19 responses)- A79% (15)
- C5% (1)
- D5% (1)
- E11% (2)
Community Discussion
No community discussion yet for this question.