From the course: Spring: Spring MVC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Spring MVC architecture

Spring MVC architecture

From the course: Spring: Spring MVC

Start my 1-month free trial

Spring MVC architecture

- [Instructor] Let us take a look at the Spring MVC architecture at a high level. Let's say this is your client, a JSP. It could be any other view technology that you want to work with. When you have an incoming request from your client it is intercepted by an API called Dispatcher Servlet, and this is the star of the Spring MVC framework. Every request is always uniquely identified by a urlpattern. And this urlpattern is mapped to a filter and a controller dedicated to that request processing. This url mapping resolution will be done by Dispatcher Servlet by means of interacting with another special bean type called Handler Mapping. Once it does this resolution, then it'll delegate the control to the respective controller component. Dispatcher Servlet works on a design pattern called Front Controller. This pattern is common even across the other web MVC frameworks. How does it work? It's like a traffic…

Contents