-
|
how spring mvc works |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Spring MVC Framework follows the Model-View-Controller design pattern. It is used to develop web applications. It works around DispatcherServlet. DispatcherServlet handles all the HTTP requests and responses. It dispatches the requests to handlers. It uses @controller and @RequestMapping as default request handlers. The @controller annotation defines that a particular class is a controller. @RequestMapping annotation maps web requests to Spring Controller methods. The terms model, view, and controller are as follows: Model: The Model encapsulates the application data. Spring MVC Framework works as follows:
reference : https://www.geeksforgeeks.org/spring-mvc-framework/ |
Beta Was this translation helpful? Give feedback.
Spring MVC Framework follows the Model-View-Controller design pattern. It is used to develop web applications. It works around DispatcherServlet. DispatcherServlet handles all the HTTP requests and responses. It dispatches the requests to handlers. It uses @controller and @RequestMapping as default request handlers. The @controller annotation defines that a particular class is a controller. @RequestMapping annotation maps web requests to Spring Controller methods. The terms model, view, and controller are as follows:
Model: The Model encapsulates the application data.
View: View renders the model data and also generates HTML output that the client’s browser can interpret.
Controller: The …