首页
学习
活动
专区
工具
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.6K20

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

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

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方法?。

29460
领券