BlackFriday 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
1 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
10 days ago
E) The @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
...
Raina
14 days ago
B) The classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
...
Edison
1 months ago
I'm not sure about C, do you think @EnableMvcMappings is required for @Controller classes to be discovered?
upvoted 0 times
...
Nohemi
1 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
1 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
9 days ago
Exactly, @Controller is used for rendering views, while @RestController is used for returning data directly as JSON or XML.
upvoted 0 times
...
Jeffrey
10 days ago
Yeah, @Controller is for handling requests in Spring MVC, while @RestController is specifically for RESTful web services.
upvoted 0 times
...
Jeffrey
23 days ago
I know right, D is definitely a trap. It's important to understand the difference between @Controller and @RestController.
upvoted 0 times
...
...
Henriette
2 months ago
I think B is true because @Controller classes handle requests in Spring MVC.
upvoted 0 times
...
Danilo
2 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
2 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
1 months ago
E) The @Controller annotation is a stereotype annotation like @Component.
upvoted 0 times
...
Leontine
1 months ago
B) The classes are eligible for handling requests in Spring MVC.
upvoted 0 times
...
...

Save Cancel