Spring MVC provides the technologies for building web applications. It is based on the Java EE Servlet API. Before we dig into Spring MVC, let's take a look at how a Java EE web application works with servlet. This will help you to understand the role of Spring MVC easier.
Spring MVC
Java EE Servlet
A Java EE Servlet, or servlet for short, lives inside a servlet container, which is usually an application server, for example, Tomcat (https://tomcat.apache.org). When an HTTP request arrives at a server, usually, it will go through a list of filters that perform filtering tasks, for example, authentication, logging, and auditing. And if the request doesn't get returned by any filter, the application server will hand...