Thursday, 14 September 2017

@Controller VS @RestController in Spring

The key difference between a traditional Spring MVC controller and the RESTful web service controller is the way the HTTP response body is created. While the traditional MVC controller relies on the View technology, the RESTful web service controller simply returns the object and the object data is written directly to the HTTP response as JSON/XML/TEXT

No comments:

Post a Comment