what if url pattern matches multiple servlets?

前端 未结 1 1953
渐次进展
渐次进展 2020-12-01 14:54

   s1
   /abc 


        
相关标签:
1条回答
  • 2020-12-01 15:36

    Check this. In short:

    • if the mappings have exactly the same pattern, there is no guarantee which servlet one will be invoked. So avoid that.
    • If the patterns are overlapping, the most specific one is picked. (/abc is more specific than /*)
    0 讨论(0)
提交回复
热议问题