From the course: Spring Web MVC 6

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Spring MVC request processing flow

Spring MVC request processing flow - Spring Tutorial

From the course: Spring Web MVC 6

Spring MVC request processing flow

- [Instructor] Let us take a look at a typical Spring MVC request processing flow. Let's say this is the browser. When you have an incoming request from the browser, it is intercepted first by the dispatcher servlet that comes from the Spring MVC Framework. Now, this is the front controller that I was talking about a while ago, and it is the star of the framework. The dispatcher servlet will intercept all the incoming requests from the view and then it works with handler mapping. Handler mapping is the one which maps the incoming URLs to the specific handlers that you have in your application. So the dispatcher servlet works with handler mapping, and then the handler mapping delivers a handler execution chain. This chain consists of a list of handlers and interceptors so handlers are the controllers that you write for your incoming requests and interceptors are the ones that you configure for pre and post-request…

Contents