Overview of the Spring MVC request flow

The main entry point for a web request in a Spring MVC application is via the Dispatcher servlet. The Dispatcher servlet acts as a front controller and dispatches the requests to the other controller. The front controller's main duty is to find the appropriate right controller to hand over the request for further processing. The following diagram shows an overview of the request flow in a Spring MVC application:

Overview of the Spring MVC request flow

The Spring MVC request flow

Okay, let's review the Spring MVC request flow in short:

  1. When we enter a URL in the browser, the request comes to the Dispatcher servlet. The Dispatcher servlet acts as a ...

Get Spring MVC Beginner’s Guide 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.