signed

QiShunwang

“诚信为本、客户至上”

启动时报错:已解决The servlets named [pdfCreate] and [] are both mapped to the

2021/4/26 19:20:37   来源:

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gxzl]]

The servlets named [pdfCreate] and [com.***.gxzl.qx.gx.util.PdfCreateServlet] are both mapped to the url-pattern [/pdfCreateHandler] which is not permitted

 

可以看到提示信息

原来是在我们的web.xml里已经定义了servlet路径的映射,然后servlet类上还有注解映射了url,所以路径重复定义了,故报此错误