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 9 Question 61 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 61
Topic #: 9
[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:

Theodora
2 months ago
C is also incorrect. The @EnableMvcMappings annotation is not required for @Controller classes to be discovered via component scanning.
upvoted 0 times
Raina
1 months ago
E) The @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
...
Raina
1 months ago
B) The classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
...
Edison
2 months ago
I'm not sure about C, do you think @EnableMvcMappings is required for @Controller classes to be discovered?
upvoted 0 times
...
Nohemi
2 months ago
I agree with you, Henriette. I also think E is true because @Controller is a stereotype annotation like @Component.
upvoted 0 times
...
Ethan
2 months ago
Haha, yeah D is a total trap. Trying to mix up @Controller and @RestController? Nice try, but I'm not falling for that one!
upvoted 0 times
Jeffrey
1 months ago
Exactly, @Controller is used for rendering views, while @RestController is used for returning data directly as JSON or XML.
upvoted 0 times
...
Jeffrey
1 months ago
Yeah, @Controller is for handling requests in Spring MVC, while @RestController is specifically for RESTful web services.
upvoted 0 times
...
Jeffrey
2 months ago
I know right, D is definitely a trap. It's important to understand the difference between @Controller and @RestController.
upvoted 0 times
...
...
Henriette
3 months ago
I think B is true because @Controller classes handle requests in Spring MVC.
upvoted 0 times
...
Danilo
3 months ago
I agree with Erasmo. D is definitely wrong since @Controller and @RestController serve different purposes. You can't just use them interchangeably.
upvoted 0 times
...
Erasmo
3 months ago
B and E are the correct answers. The @Controller annotated classes are eligible for handling requests in Spring MVC and the @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
Sherell
2 months ago
E) The @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
...
Leontine
2 months ago
B) The classes are eligible for handling 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