首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

SpringClould Feign 报错 Request method POST not supported 的解决办法

明明Feign调用的方法的注解为 @GetMapping,缺一直报错: org.springframework.web.HttpRequestMethodNotSupportedException: Request...method 'POST' not supported at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.handleNoMatch...org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.getHandlerInternal(AbstractHandlerMethodMapping.java:367) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getHandlerInternal...(RequestMappingHandlerMapping.java:449) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.getHandlerInternal...image.png 解决方法 如果feign代理的是get请求,则每个参数必须带上@RequestParam,否则会报post not support!

6.9K20

matinal:http POST集成报错:Request methodPOST‘ not supported怎么解决,给某个系统的人看的

在使用RestFul风格来发送Put请求时,报错Request methodPOST’ not supported org.springframework.web.HttpRequestMethodNotSupportedException...: Request method 'POST' not supported 在网上搜了普遍的解决方法,如下: 在配置文件中添加以下代码,开启HiddenHttpMethodFilter spring.mvc.hiddenmethod.filter.enable...=true  在表单中添加以下代码,修改请求方式                 但是以上的方法都没有解决我的问题,仍然报错“不支持POST...后来我通过对源码进行断点分析,发现程序没有走SpringBoot自动配置类WebMvcAutoConfiguration中的OrderedHiddenHttpMethodFilter方法,而该方法正是让post

83630
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    matinal:http post集成报错Request methodPOST‘ not supported,对方系统说:告诉你们用POST,你们还用GET,这TM和GET有关系吗,NMD

    前言 最近和某个恶心的系统做对接,NMD,报错Request method 'POST' not supported,非要说我没有用POST,还说文档都写用POST了,你们还用GET,跟NMD POST...Request method 'POST' not supported  进入正文,跟前端进行数据联调时,别人联调都正常,到联调我的接口(进行数据获取)就出现了问题。   ...2、于是我看下后端请求的日志,SpringMVC日志提示:“[org.springframework.web.servlet.PageNotFound] >>> Request method 'POST...条件反射让我想起是不是在@RequestMapping中Method 没有指定为post? 其实我指定了post方法的,这个肯定排除了。...查了网上很多问题一堆不靠谱:(,一直沉迷于Request method 'POST' not supported这个信息无法自拔,难道这配置不支持post方法?。

    37660

    Django中的request.POST重构

    request.POST的重构 request.POST重构 最近在写MHA部署的平台化操作页面,先简单说下MHA平台化的主要步骤,大概如下(以一主一从为例进行分析): 1.部署两台MySQL...所以这个问题的重点就集中在了,怎么把前端发过来的request.POST请求进行拼接重构,然后再用拼接好的request.POST值作为api的参数,去调用防火墙开通的api,开通防火墙的api的参数格式和调用方法如下...解析 master_ip = request.POST.get('master_ip') master_port=request.POST.get('master_port') slave_ip0 =...request.POST.get('slave_ip0') slave_port0 = request.POST.get('slave_port0') mha_manager0 = request.POST.get...request.user.id, request.POST) 可以看到,在进行重构之前,必须导入QueryDict相应的包,也就是django.http包,我们首先把request.POST中的内容拿到

    1K30
    领券