Broadcom-VMware
2V0-72.22 · Question #55
Which two statements are true about @Controller annotated classes? (Choose two.)
The correct answer is B. The classes are eligible for handling requests in Spring MVC. E. The @Controller annotation is a stereotype annotation like @Component. See the full explanation below for the reasoning.
Question
Which two statements are true about @Controller annotated classes? (Choose two.)
Options
- AThe @Controller annotated classes can only render views.
- BThe classes are eligible for handling requests in Spring MVC.
- CThe classes must be annotated together with @EnableMvcMappings to be discovered via
- D@Controller is interchangeable with @RestController with no extra code changes for the
- EThe @Controller annotation is a stereotype annotation like @Component.
How the community answered
(47 responses)- A11% (5)
- B79% (37)
- C2% (1)
- D9% (4)
Community Discussion
No community discussion yet for this question.