IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionS

IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionS,第1张

IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionS

例外是不言自明的

作者:java.lang.IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionServlet]的servlet都映射到url模式[/
AllocationServlet],这是不允许的

看来您的两个servlet分别是

  1. 分配Servlet
  2. SearchConditionServlet

两者都映射到相同的url-pattern

AllocationServlet

您需要修复servlet的web.xml或注解(在Servlet3.0的情况下),并确保没有两个servlet映射到相同的url模式。



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5019467.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存