HTTP Status 404 – Not Found
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.39
HTTP Status 404 – Not Found
Type Status Report
Message Not found
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.39
以下回答参考 皆我百晓生、券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。
这个问题是由于目标资源不存在或未被配置到Tomcat服务器上引起的。你可以尝试以下几个步骤来解决这个问题:
确保目标资源存在:检查目标文件夹是否存在,并且它包含了一个有效的HTML、XML或者JSON文件。
检查是否正确配置了目标资源:在Tomcat的web.xml文件中,确保你已经指定了正确的资源类型和路径。例如:
<Context docBase="target/classes" path="/resources">
<ResourceHandler>
<resourceBase>/resources</resourceBase>
<viewEngine encoding="UTF-8"/>
<errorPage statusCode="404" page="/404.jsp"/>
</ResourceHandler>
</Context>
如果你能提供更具体的错误信息(比如使用的版本号、异常堆栈等),我可能会更好地帮助你解决问题。