HTTP method GET is not supported by this URL
来源:互联网 发布:淘宝小额借贷 编辑:程序博客网 时间:2024/06/07 17:26
问题描述 :
WEB+Servlet+Tomcat项目 , 访问Servlet时报错
问题信息 :
HTTP Status 405
type
: Status report
message
: HTTP method GET is not supported by this URL
description
: The specified HTTP method is not allowed for the requested resource.
原因
归根究底都是调用了HttpServlet的doXXX()方法 :
1. 继承HttpServlet的Servlet未重写覆盖所需调用的方法:doGet(),doPost()等方法; 2. 重写的方法中调用了super.doXXX(),导致Servlet的方法未被调用,而是调用的父类HttpServlet的默认方法
解决方法
1. 检测Servlet中是否重写了被调用的方法 2. 检测目标方法中是否调用了super.doXXX()
阅读全文
0 0
- HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- 405 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
- 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
- Servelet:HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- 405: HTTP method GET is not supported by this URL
- HTTP method GET is not supported by this URL
- 405--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
- 金数据在线编辑
- LeetCode 237. Delete Node in a Linked List
- 阿里工程师写了一套神奇的代码解决租房烦恼?
- url攻击小常识
- Jsp与Servlet,Http中GET与POST,Html与Jsp的区别
- HTTP method GET is not supported by this URL
- Xcode更新QT Creator无法构建
- Unity3D白皮书(二)纹理导入设置
- goose house 光るなら 若能绽放光芒 平仮名 平假名 假名 标注 注音 歌词
- window.open()打开窗口的几种方式
- ActiveMQ消息的同步和异步
- 【水题】HDU4931Happy Three Friends【BestCoder Round #4】
- 初识nodejs9
- GTK学习(2)-布局管理