Difference between Spring MVC Architecture And Spring REST Architecture?
To learn Angular2 from scratch and most useful for beginners Please see the link below: https://www.youtube.com/watch?v=BJmEs0XamI0&list=PLCxB3OvyEYx3mwSxmossZ-bkv46flY9bR&index=1 In this video, I have explained about how spring MVC Framework and REST architecture works. -How Spring MVC architecture differs from spring MVC REST architecture? Ans- Spring’s annotation-based MVC framework simplifies the process of creating RESTful web services. -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. Spring MVC Workflow- Step 1: First request will be received by DispatcherServlet Step 2: DispatcherServlet will take the help of HandlerMapping and get to know the Controller class name associated with the given request Step 3: So request transfer to the Controller, and then controller will process the request by executing appropriate methods and returns ModeAndView object (contains Model data and View name) back to the DispatcherServlet Step 4: Now DispatcherServlet send the model object to the ViewResolver to get the actual view page Step 5: Finally DispatcherServlet will pass the Model object to the View page to display the result. Spring MVC REST Workflow- -The key difference between a traditional Spring MVC controller and the RESTful web service controller is the way the HTTP response body is created. -RESTful web service controller simply returns the object and the object data is written directly to the HTTP response as JSON/XML. -Difference between spring mvc architecture and rest architecture? -How Spring MVC works? -How REST architecture works?
Download
0 formatsNo download links available.