Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware Exam 2V0-72.22 Topic 10 Question 55 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 55
Topic #: 10
[All 2V0-72.22 Questions]

Which two statements are true about @Controller annotated classes? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: B, E

Contribute your Thoughts:

Annett
3 months ago
Jokes aside, I'd say B and E are the clear winners here. The @Controller is a core Spring MVC annotation, and it's indeed a stereotype like @Component. Gotta love that Spring ecosystem!
upvoted 0 times
...
Veronika
3 months ago
Haha, A is so wrong. The whole point of a @Controller is to handle requests, not just render views. Someone's been watching too much JSP code, I think.
upvoted 0 times
Oretha
2 months ago
Yes, B is correct. @Controller classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
Vesta
2 months ago
I agree, A is definitely wrong. @Controller classes handle requests, not just render views.
upvoted 0 times
...
...
Arthur
3 months ago
I don't think so, Mendy. I believe C is false because @Controller classes are automatically discovered via component scanning.
upvoted 0 times
...
Mendy
3 months ago
I'm not sure about C. Do we really need to use @EnableMvcMappings for @Controller classes to be discovered?
upvoted 0 times
...
Lizette
3 months ago
I think C is a bit misleading. The @Controller classes don't need to be annotated with @EnableMvcMappings to be discovered via component scanning. That's just an extra configuration step.
upvoted 0 times
...
Kenneth
3 months ago
Hmm, D is definitely not true. @Controller and @RestController are not interchangeable, as they serve different purposes. You can't just swap them without changing the method implementations.
upvoted 0 times
Lashawn
2 months ago
B) The classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
Lashawn
3 months ago
A) The @Controller annotated classes can only render views.
upvoted 0 times
...
...
Elina
3 months ago
I agree with you, Arthur. I also think E is true because @Controller is a stereotype annotation like @Component.
upvoted 0 times
...
Mickie
3 months ago
B and E are the correct answers. The @Controller annotation is used to mark a class as a Spring MVC controller, which can handle requests in the Spring MVC framework. It's also a stereotype annotation like @Component.
upvoted 0 times
Tori
2 months ago
That's correct! @Controller annotated classes can handle requests in Spring MVC and are also stereotype annotations like @Component.
upvoted 0 times
...
Fidelia
2 months ago
E) The @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
...
Jesusita
3 months ago
B) The classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
...
Arthur
4 months ago
I think B is true because @Controller classes can handle requests in Spring MVC.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77