Java maven项目的小随笔时间:2023-11-27 12:03:561.web.xml里面有filter拦截设置,注意。 2.编译之后,网页中读取资源的路径是apache-tomcat/wtpwebapps/..,若该路径下没有相应资源,则报404错误。