When do we need multiple Dispatcher Servlet?

后端 未结 3 927
一个人的身影
一个人的身影 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:26

    Strictly seperating user and admin functionality. Or one for plain Spring MVC and another for Spring Web Flow. If there are major configuration differences for some controllers. (We actually used the Spring MVC and Spring Web Flow seperation so that we could add this without affecting the already exising configs). Nowadays with servlet 3.0 you could develop seperate parts of your application seperatly and have all of them contribute there own DispatcherServlet and mappings (although you could also achieve this with some configuration conventions).

提交回复
热议问题