What is Dispatcher Servlet in Spring?

前端 未结 7 1621
一整个雨季
一整个雨季 2020-11-30 15:56

In this image (which I got from here), HTTP request sends something to Dispatcher Servlet.

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 16:33

    DispatcherServlet is Spring MVC's implementation of the front controller pattern.

    See description in the Spring docs here.

    Essentially, it's a servlet that takes the incoming request, and delegates processing of that request to one of a number of handlers, the mapping of which is specific in the DispatcherServlet configuration.

提交回复
热议问题