Do you want to learn Spring MVC

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 container is used for the development and deployment of applications and uses a lightweight servlet.

Points:

All the incoming requests are intercepted by the DispatcherServlet that works as the front controller.
The DispatcherServlet then gets an entry of handler mapping from the XML file and forwards the request to the controller.
The object of ModelAndView is returned by the controller.
The DispatcherServlet checks the entry of the view resolver in the XML file and invokes the appropriate view component.

The view is a component of MVC architecture that is used to return a user interface output to the user in response to the user request. A View page can be any HTML or JSP file.
Spring MVC internally uses a view resolver to fetch the requested view to the user. There are several ways to configure the view in the Spring application. We can use XML, Java code, and property file to configure the view.


Spring MVC defines the ViewResolver and View interfaces that let you render models in a browser without tying you to specific view technology. ViewResolver provides a mapping between view names and actual views. View addresses the preparation of data before handing over to the specific view of technology.

Learn others - Once you understands the basic of JSP then other related technologies like Spring and Spring Boot etc. are become easier to understand.

There are many platforms where Spring MVC is taught, but I will tell you some platforms from where you can learn Spring MVC very well, let me provide you some links and you will see from them, I guarantee that your 100% Spring MVC will be good.

you can learn by YouTube
you can learn by GeeksforGeeks
you can learn by JavaTPoint

Post a Comment

0 Comments