![IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionS,第1张 IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionS,第1张](/aiimages/IllegalArgumentException%EF%BC%9A%E5%90%8D%E4%B8%BA%5Bcom.staff.servlet.AllocationServlet%5D%E5%92%8C%5Bcom.staff.servlet.SearchConditionS.png)
例外是不言自明的
作者:java.lang.IllegalArgumentException:名为[com.staff.servlet.AllocationServlet]和[com.staff.servlet.SearchConditionServlet]的servlet都映射到url模式[/
AllocationServlet],这是不允许的
看来您的两个servlet分别是
- 分配Servlet
- SearchConditionServlet
两者都映射到相同的url-pattern
AllocationServlet
您需要修复servlet的web.xml或注解(在Servlet3.0的情况下),并确保没有两个servlet映射到相同的url模式。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)