It is responsible to manage the flow of the Spring MVC application. Front Controller - In Spring Web MVC, the DispatcherServlet class works as the front controller.Although spring also supports other view technologies such as Apache Velocity, Thymeleaf and FreeMarker. Generally, JSP+JSTL is used to create a view page. View - A view represents the provided information in a particular format.Here, the annotation is used to mark the class as the controller. Controller - A controller contains the business logic of an application.A data can be a single object or a collection of objects. Model - A model contains the data of the application. Here, DispatcherServlet is a class that receives the incoming request and maps it to the right resource such as controllers, models, and views. It implements all the basic features of a core spring framework like Inversion of Control, Dependency Injection.Ī Spring MVC provides an elegant solution to use MVC in spring framework by the help of DispatcherServlet. It follows the Model-View-Controller design pattern. A Spring MVC is a Java framework which is used to build web applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |