nerdexam
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)
  • A
    11% (5)
  • B
    79% (37)
  • C
    2% (1)
  • D
    9% (4)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice