学习Servlet时遇到:The origin server did not find a current representation for the target resources or

我是在学习Servlet时运行程序后报这个404错误,最后发现如果把要提交的内容放在doGet里,就能运行,而原本放在doPost里。

百度发现表单默认提交方法是“GET”,即method的默认值是“GET”刚好我这个程序没有设定表单提交方法。



学习Servlet时遇到:The origin server did not find a current representation for the target resources or