Request is going to Struts Dispatcher

后端 未结 2 756
花落未央
花落未央 2021-01-28 04:12

I have both Struts 2 and Spring MVC configured. My web.xml looks like below. When I hit a REST URL to upload file, it invokes struts dispatcher instead of Spring.

2条回答
  •  春和景丽
    2021-01-28 05:10

    Your spring MVC dispatcher servlet is mapped to the subset of URLs handled by the Struts filter. As far as filter invoked before any other servlets then it will have precedence. To workaround you need to configure Struts to exclude some URLs from mapping.

    
        
        ...
    
      
    

提交回复
热议问题