Caused by: java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>
at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2186)
... 159 more
11:34:00,579 ERROR [ContextConfig] Parse error in application web.xml file at jndi:/localhost/WEB-INF/web.xml
java.lang.IllegalArgumentException: Filter mapping must specify either a <url-pattern> or a <servlet-name>
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2807)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2833)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1139)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
产生此错误的原因是filter中的<url-pattern>*</url-pattern>应改为<url-pattern>/*</url-pattern>