Now that we've looked at a few basic flows with Spring MVC, we will switch our attention to understanding how these flows work. How does the magic happen with Spring MVC?
When working with the different flows, we looked at some of the important features of the Spring MVC Framework. These include the following:
- Loosely coupled architecture with well-defined, independent roles for each of the objects.
- Highly flexible Controller method definitions. Controller methods can have a varied range of parameters and return values. This gives flexibility to the programmer to choose the definition that meets their needs.
- Allows the reuse of domain objects as form backing objects. Reduces the need to have separate form objects.
- Built-in tag libraries (Spring, spring-form) with localization support.
- Model uses a HashMap with key-value pairs. Allows integration with multiple view technologies.
- Flexible binding. Type mismatches while binding can be handled as validation...