tomcat报"The servlets named [x] and [y] are both mapped to the url-pattern[z] which is not permitted"
原因总结:1、在web.xml中或者用annotation配置了同一个url-pattern映射, 属于重复配置;2、做项目的过程中遇到这种情况,最开始使用annotation配置servlet,后来因为还要加一些其他配置就统一改到web.xml中去配置servlet了。用maven命令打包后部署,总是报如上的错误,查了很久终于发现在webapp/WEB-INF/classes目录下有一些
原创
2013-08-06 10:20:07 ·
8346 阅读 ·
0 评论