Having gone through your first Spring MVC application, it is now time to look at Spring MVC applications from an architectural perspective:
As the name implies, Spring MVC follows the renowned MVC architectural pattern. This pattern ensures the separation of concerns by dividing responsibilities into three major roles:
Model: This represents data and business logic
View: This represents presentation
Controller: This processes client requests and delegates them to the view for rendering back to the client
The Model we are talking about here is not necessarily persistent data (a data model) as such; rather, it represents the information passed back and forth between the client and different layers of the server application, which form the building blocks of any system.
Besides the Model, View, and Controller components, DispatcherServlet
too plays a crucial role in the Spring MVC architecture. It acts as the Front Controller,...