解决访法:检查web.xml中的servlet映射<url-pattern>
出现此异常,一般是由于过滤器造成的。
@WebFilter("/*")
过滤器弄错了,检查<url-pattern></url-pattern>中配置的内容是否缺少“/” ,"/"表示当前web应用。