Can I configure multiple DispatcherServlet instance in a single web.xml, each DispacherServlet instance has their own bean configuration file, since I am going to setup several DispatcherServlet instance to handle request to different module, for eg,
and also I have two file under web-inf directory:moduleA-servlet.xml,moduleB-servlet.xml, the content of moduleA-servlet.xml includes following:
The problem is when I type following url into IE, I got a 404 error, and I debuged, found request even can't go into handleRequestInternal method:
Does any one can also tell me the relationship between applicationContext and webApplicationContext, can I share web related beans in applicationContext.xml, if I can, why I got a "can't find handler" when I move the aformentioned into applicationContext.xml from moduleA-servlet.xml. Thank you very much indeed!!!