使用severlet时报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

报错显示(浏览器 & idea)

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
翻译:原始服务器没有找到目标资源的当前表示,或者不愿意透露存在该目标资源。
tomcat运行报错:HTTP Status 404 – 未找到 (1)
tomcat运行报错:HTTP Status 404 – 未找到 (1)

tomcat运行报错:HTTP Status 404 – 未找到 (1)

问题

案例没有出错,部署也没有问题,原因是表单提交时没有填写表单,提交了空的表单,深层原因不明。

解决

填写正确的用户名密码,成功登陆。
这只是一个简单的案例,空指针的报错,自然会报错,需要完善。

tomcat运行报错:HTTP Status 404 – 未找到 (1)
tomcat运行报错:HTTP Status 404 – 未找到 (1)

相关文章: