Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 31 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 31
Topic #: 1
[All 2V0-72.22 Questions]

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.
  • B. Component scanning will start from the package of the class.
  • C. All other annotations on the class will be ignored.
  • D. Methods in the class annotated with @Bean will be ignored.
  • E. A separate ApplicationContext will be created for each class annotated with @SpringBootApplication.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
2211094
5 months, 1 week ago
Correct answer is AB. A reason why E is not a valid answer is because in typical Apring boot application, there will only be one ApplicationContext created however you can have multiple but this will lead to complication and unexpected behaviour to happen.
upvoted 2 times
...
Tolo01
1 year, 4 months ago
Selected Answer: AB
A and B
upvoted 3 times
...
zakupower
1 year, 8 months ago
Selected Answer: AB
These are correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...