社区
Web 开发
帖子详情
这是什么错误啊HTTP method GET is not supported by this URL
tearsmo57
2010-10-26 06:06:49
地址栏运行到http://localhost:8080/flight/searchflightServlet?action=list时就出现了这个405错误,请大家帮忙啊?
...全文
141
6
打赏
收藏
这是什么错误啊HTTP method GET is not supported by this URL
地址栏运行到http://localhost:8080/flight/searchflightServlet?action=list时就出现了这个405错误,请大家帮忙啊?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
寻道的 Programmer
2010-10-27
打赏
举报
回复
检查一下你这个searchflightServlet类里是否覆盖了doGet()方法!
a605501800
2010-10-27
打赏
举报
回复
更改表单提交 方式为Post
just_want_do
2010-10-27
打赏
举报
回复
[Quote=引用 2 楼 kypfos 的回复:]
这个 servlet 控制了不允许 get 方式请求的,改成 post 吧,做个表单
<form action="http://localhost:8080/flight/searchflightServlet?action=list" method="post"><input type="submit"></form>
检查一下那个 searchflightServlet 的代码
……
[/Quote]
改成 post
Zh_java_2009
2010-10-26
打赏
举报
回复
永远无限的支持沙发!
Yanbin_Q
2010-10-26
打赏
举报
回复
这个 servlet 控制了不允许 get 方式请求的,改成 post 吧,做个表单
<form action="http://localhost:8080/flight/searchflightServlet?action=list" method="post"><input type="submit"></form>
检查一下那个 searchflightServlet 的代码
特别是 Restful 的方式用注解可以很方便的控制可用的请求方式。
stl0
2010-10-26
打赏
举报
回复
估计是这个servlet不支持GET 只支持POST
一次性搞定数据库事务
第五部分:彻底搞清楚Spring事务的7种传播级别的原理和使用:PROPAGATION_REQUIRED、PROPAGATION_SUPPORTS、PROPAGATION_MANDATORY、PROPAGATION_REQUIRES_NEW、PROPAGATION_NOT_
SUPPORTED
、PROPAGATION_NEVER、...
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
Servlet eroor:
HTTP
method
GET is not
supported
by this
URL
错误
提示: type: Status reportmessage:
HTTP
method
GET is not
supported
by this
URL
description: The specified
HTTP
method
is not allowed f
HTTP
Status 405 -
HTTP
method
GET is not
supported
by this
URL
HTTP
Status 405 -
HTTP
method
GET is not
supported
by this
URL
type Status report message
HTTP
method
GET is not
supported
by this
URL
description The specified
HTTP
me
bug解决:
HTTP
method
GET is not
supported
by this
URL
1、
错误
信息:
HTTP
method
GET is not
supported
by this
URL
2、字面理解:Get方法不能为
URL
请求的支撑工作3、解决方案:查看该功能对应的servlet类,是否重写了doGet()、doPost()方法,并使用doGet()方法完成...
Web 开发
81,094
社区成员
341,711
社区内容
发帖
与我相关
我的任务
Web 开发
Java Web 开发
复制链接
扫一扫
分享
社区描述
Java Web 开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章