没有怎么动tomcat突然今天运行的额时候就报了很多错
其中有一句
Caused by: java.lang.IllegalArgumentException:
The servlets named [shop.ShowCars] and [showHistory.ShowBooks] are both mapped to the url-pattern [/ShowBooks] which is not permitted
at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:308)
然后我去查我的web.xml
完全没有编译器所报的错,难道要改WEBXML.class的内容吗?请前辈指教一下,谢谢了
你看的这个web.xml没有问题,你这个文件在哪个目录。你起作用的配置文件应该另有文件,并且其中把两个servlet映射到一个url了。