- Get link
- X
- Other Apps
It is one of the frame work in the spring where it is used to develop web applications and distributed application. As there is servlets and jsp is in place to develop the web applications. But what is the need of spring MVC. But the problem in the normal servlet and jsp we need to write lots of boiler plate code. So the Spring MVC framework will reduce totally the boiler plate code. The Boiler plate code is the code which is common for all the classes is called the boiler plate code. In the project if there is 100 servlets then there should be 100 java beans will be prepared by the developer. This will cause the mixing of business logic and presentation logic which means we write the both the logics in same file so that it is difficult to modify the source code if the developer wants. Spring MVC Advantages: Spring MVC will remove the boiler plate code using the Front controller(Dispatcher Servlet). It will separate the Business logic and presentation logic. MODEL(M) VIEW(V) CONTR...