Let’s start by observing the figure below: First, the request is received by the DispatcherServlet. DispatcherServlet is a front controller. It is like a super controller who redirects all the requests to the corresponding handler methods inside the controller classes.
I have shared a sample Spring MVC web project on my GitLab and tried to put together a couple of wiki pages to help you understand better. I believe it will be a valuable asset for you if you are trying