启动tomcat弹出了Server Tomcat v7.0 Server at localhost failed to start.如下图:
1、查看控制台输出信息,看到如下内容:
The servlets named [A] and [com.mq.mwui.service.A] are both mapped to the url-pattern [/A] which is not permitted
2、查看web.xml和上述对应的servlet,截图如下:
servlet3.0后@webServlet注解和servlet-mapping只能选择一种使用。