The web application architecture

Now you understand the overall request flow and the responsibility of each component in a typical Spring MVC application, but that is not enough for you to build an online web store application. We also need to know the best practices to develop an enterprise-level web application. One of the best practices in a typical web application is to organize source codes into layers, which will improve reusability and loose coupling. A typical web application would normally have four layers, namely presentation, domain, services, and persistence. So far, what we have seen like the Dispatcher servlet, controllers, view resolvers, and similar, are considered to be part of the Presentation layer's components. Now you need ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.