Spring MVC
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.
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 it over to a servlet that is registered to process those requests that contain a URI that matches a certain pattern. Once the servlet finishes processing the request, an HTTP response will be sent back to the client after going through the same set of filters that processed the corresponding...