Which two statements are true about @Controller annotated classes?

Which two statements are true about @Controller annotated classes? (Choose two.)
A. The @Controller annotated classes can only render views.
B. The classes are eligible for handling requests in Spring MVC.
C. The classes must be annotated together with @EnableMvcMappings to be discovered via component scanning.
D. @Controller is interchangeable with @RestController with no extra code changes for the methods inside the class.
E. The @Controller annotation is a stereotype annotation like @Component.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.