An 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 the front controller and dispatches the requests to the other controller. The front controller's main duty is to find the appropriate controller to hand over the request for further processing. The following diagram shows an overview of the request flow in a Spring MVC application:

An overview of the Spring MVC request flow

The Spring MVC request flow

Now, 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 then acts as ...

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.