O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The MVC architectural pattern

The Model-View-Controller (MVC) pattern's purpose is to decouple user interfaces, data, and business logic, which are called views, models, and controllers, respectively. This separation simplifies application architecture and makes development, testing, and maintenance easier. This architecture avoids code duplication in many situations, and provides reusability in views, models, and business logic.

All web frameworks implement the MVC pattern. The following figure depicts the basic scenario that is accomplished in web frameworks for a typical user request:

The MVC architectural pattern

The controller is an object that processes the request, updates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required