Skip to main content

What is DispatcherServlet?

Learn What is DispatcherServlet? (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes DispatcherServlet is a class that extends HttpServlet through FrameworkServlet ; it is the one servlet that receives web requests in a Spring MVC application. Purpose : it finds which controller method should handle a request, calls it and turns the result into an HTTP response. Why needed : without it you would write one servlet per URL and parse parameters, convert data and render pages yourself.

More lessons in DispatcherServlet