ExamGecko
Question list
Search
Search

Question 31 - 2V0-72.22 discussion

Report
Export

Which two statements are correct when @SpringBootApplication is annotated on a class? (Choose two.)

A.
It causes Spring Boot to enable auto-configuration by default.
Answers
A.
It causes Spring Boot to enable auto-configuration by default.
B.
Component scanning will start from the package of the class.
Answers
B.
Component scanning will start from the package of the class.
C.
All other annotations on the class will be ignored.
Answers
C.
All other annotations on the class will be ignored.
D.
Methods in the class annotated with @Bean will be ignored.
Answers
D.
Methods in the class annotated with @Bean will be ignored.
E.
A separate ApplicationContext will be created for each class annotated with @SpringBootApplication.
Answers
E.
A separate ApplicationContext will be created for each class annotated with @SpringBootApplication.
Suggested answer: A, E

Explanation:

Reference: https://www.journaldev.com/21556/springbootapplication-springapplication

asked 16/09/2024
Malik Adeel Imtiaz
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first