In this chapter, you've seen how the Spring Framework allows you to develop a flexible and loosely coupled web-based application. Spring employs annotations for near-POJO development model in your web application. You learned that with Spring MVC, you can create a web-based application by developing controllers that handle requests, and these controllers are very easy to test. In this chapter, we covered the MVC pattern, including its origins and what problems it solves. The Spring Framework has implemented MVC patterns, which means that for any web application, there are three components--Model, View, and Controller.
Spring MVC implements the Application Controller and Front Controller patterns. Spring's dispatcher servlet (org.springframework.web.servlet.DispatcherServlet) works as a Front Controller in a web-based application. This dispatcher or front controller...