天天看点

一个filter引起的404错误

这个404错误起初让我觉得很费解:

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

一个filter引起的404错误

然而main.jsp明明就在项目文件夹里:

一个filter引起的404错误

后来发现,是web.xml里的filter-class标签页的属性值不正确,缺少了包名:

一个filter引起的404错误

改成com.sap.jerry.LogFilter之后错误就消失了:

一个filter引起的404错误

继续阅读