出现HTTP Status 405 - HTTP method GET is not supported by this URL
来源:互联网 发布:iphone如何投屏到mac 编辑:程序博客网 时间:2024/05/18 00:35
出现HTTP Status 405 - HTTP method GET is not supported by this URL
原因是:
1、继承自Httpservlet的Servlet没有重写对于请求和响应的处理方法:doGet或doPost等方法,默认调用父类的doGet或doPost等方法。
2、父类HttpServlet的doGet或doPost等方法覆盖了你写的到doGet或doPost等方法。
不管是1或2,父类HttpServlet的doGet或doPost等方法默认实现是返回状态码是405的Http错误表示 对于指定资源请求方法不被允许。
解决方法:
1、子类重写doGet或doPost等方法。
2、在你扩张的Servlet中重写doGet或doPost等方法来处理请求和响应时,不要调用父类的doGet或doPost等方法即去掉supper.doGet(request,response)和super.doPost(request,response);
原因是:
1、继承自Httpservlet的Servlet没有重写对于请求和响应的处理方法:doGet或doPost等方法,默认调用父类的doGet或doPost等方法。
2、父类HttpServlet的doGet或doPost等方法覆盖了你写的到doGet或doPost等方法。
不管是1或2,父类HttpServlet的doGet或doPost等方法默认实现是返回状态码是405的Http错误表示 对于指定资源请求方法不被允许。
解决方法:
1、子类重写doGet或doPost等方法。
2、在你扩张的Servlet中重写doGet或doPost等方法来处理请求和响应时,不要调用父类的doGet或doPost等方法即去掉supper.doGet(request,response)和super.doPost(request,response);
0 0
- 出现HTTP Status 405 - HTTP method GET is not supported by this URL
- HTTP Status 405 - HTTP method GET(POST) is not supported by this URL
- 访问arcgisserver报:HTTP Status 405 - HTTP method GET is not supported by this URL
- HTTP Status 405 - HTTP method GET is not supported by this URL
- servlet错误:HTTP Status 405 - HTTP method GET is not supported by this URL
- HTTP Status 405 - HTTP method GET is not supported by this URL
- 405 HTTP method GET is not supported by this URL
- 405: HTTP method GET is not supported by this URL
- 405--HTTP method GET is not supported by this URL
- 当编写Servlet时出现type Status report message HTTP method GET is not supported by this URL description The
- java servlet 错误解决 HTTP Status 405 - HTTP method GET is not supported by this URL type
- Android异常总结---type Status report message HTTP method GET is not supported by this URL
- Android异常总结---type Status report message HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL 问题解决
- HTTP method GET is not supported by this URL
- cocoaPods管理第三方控件库
- 使用POI对EXCEL进行单元格的合并
- matlab对文件目录路径的操作
- 前端之Android入门(1):环境配置
- 和机器学习和计算机视觉相关的数学
- 出现HTTP Status 405 - HTTP method GET is not supported by this URL
- ffmpeg---CompilationGuide
- 10008---jQuery效果--淡入淡出
- 前端之Android入门(2):程序目录及UI简介
- Android的NDK开发(4)————JNI数据结构之JNINativeMethod
- ADF的scope获取方式
- JAVA中字符串比较equals()和equalsIgnoreCase()的区别
- Java中volatile关键字的含义
- 使用CSS修改HTML5 input placeholder颜色