- 链接地址:https://blog.csdn.net/weixin_45793819/article/details/108197177
- 链接标题:使用feign发起远程调用 Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request meth_openfeign调用resolved [org.springframework.web.httpr-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1958
文章浏览阅读1w次。异常Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST’ not supported]原因使用了get请求 通过feign 发起远程调用,因为按照规范来写时,get请求的参数列表种不能写@requestbody ,写普通对象不能写其他注解 ,为了把这个对象接受的参数传给服务端 ,此时可以用 @SpringQueryMap 传递对象数据给服务端解决办法在feig_openfeign调用resolved [org.springframework.web.httprequestmethodnotsupported
版权声明:本文发布于特牛网址导航 内容均来源于互联网 如有侵权联系删除