Let's start by adding the Spring MVC dependency to our pom.xml file. The following code shows the dependency to be incorporated. Since we are using Spring BOM, we do not need to specify the artifact version:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
DispatcherServlet is an implementation of the FrontController pattern. Any request to Spring MVC will be handled by FrontController, that is, DispatcherServlet.