1. The dispatcher servlet
Every web request first comes to the dispatcher servlet. The dispatcher servlet is the one that decides the controller method that it should dispatch the web request to.
Mapping a URL to the appropriate controller method is the primary duty of a dispatcher servlet.