调用doGet方法报405错误

来源:互联网 发布:郑州管家婆软件怎么样 编辑:程序博客网 时间:2024/06/07 04:45

我在doPost方法中调用doGet方法,然后报错405,我这里的错误原因是因为我在doPost方法中调用父类的doGet方法,而不是调用当前对象的doGet方法。

应该吧super.doGet()改为this.doGet()

错误提示:HTTP/1.1 405 HTTP method GET is not supported by this URL Content-Type: text/html; charset=ISO-8859-1 Cache-Control: must-revalidate,no-cache,no-store Content-Length: 370