This development article guides you through how to create a Spring MVC project by using Maven and IntelliJ IDE 2018. This article includes how to configure the Spring DispatcherServlet.
This article builds a base Spring MVC project by using a standard web application Maven Archetype. Then it includes Spring MVC dependencies into the POM file and configures Spring related XML files, such as WEB-INF/dispatcher-servlet.xml file.
Finally, the Spring MVC project is deployed to Tomcat. If you do not have TOMCAT installed, see http://tomcat.apache.org/. (This article uses Tomcat 8).
The following illustration shows the Spring MVC built in this article.
To learn how to create a Spring MVC project by using Maven and IntelliJ IDE 2018, download this PDF.