In my spring application, I have the following configuration classes for the spring environment:
WebAppInitializer.java
@Order(value=1)
We can have to multiple Dispatcher Servlets, like we can have 2(or more) DispatcherServlet with 2( or more) servlets name.So the D1 and D2 could map to different URL path.Example:-
mac
org.springframework.web.servlet.DispatcherServlet
1
windows
org.springframework.web.servlet.DispatcherServlet
1
URL path could be mapped like :-
mac
/mac/*
windows
/windows/*