When do we need multiple Dispatcher Servlet?

后端 未结 3 934
一个人的身影
一个人的身影 2021-01-06 07:08

In which scenarios, we need multiple Dispatcher-Servlets?
Can anyone please tell me the use cases of multiple Dispat

3条回答
  •  天涯浪人
    2021-01-06 07:17

    As DispatcherServlet is very flexible. Not only Spring MVC uses it, but also Spring WS and etc.

    In general, we declare multiple dispatcher servlets when we need multiple sets of MVC configuration. For example, we may have a REST API alongside a traditional MVC application or an unsecured and a secure section of a website:

    Source of this answer, read in detail...

提交回复
热议问题