文章 2024-10-11 来自:开发者社区

【HTTP】方法(method)以及 GET 和 POST 的区别

方法(method) 首行中的第一部分。首行是由方法、URL 和版本号组成 方法描述了这次请求想干什么,最主要的是: GET:从服务器拿一个东西过来(读操作) POST:往服务器放一个东西(写操作) ...

【HTTP】方法(method)以及 GET 和 POST 的区别
文章 2022-04-16 来自:开发者社区

J2EE中HTTP method GET/Post 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的...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"从 HTTP 到 HTTPS 让网站更安全","productDescription":"本方案介绍如何在ECS上搭建Web应用以及在Nginx服务器上部署SSL证书开启HTTPS安全访问。","productContentLink":"https://www.aliyun.com/solution/tech-solution/ssl","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/ssl"},"productButton2":{"productButtonText":"方案部署","productButtonLink":"https://help.aliyun.com/document_detail/2684684.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"全面安全保障:等保 2.0 解决方案","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/mlps-compliance-solution","productPromotionInfoSecondText":"企业多账号身份权限集中管理","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/cmomaip"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}