adspace
Answer Posted / Preeti Rani
@Controller is a Spring MVC annotation that marks a class as a controller. @RestController is a specialization of @Controller that produces response bodies with HTTP messages and automatically selects the appropriate Content-Type based on the method annotated with @RequestMapping.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers