当前位置:网站首页>FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
FeignClient 调用GET 方法报错 ResultVO{result=未知异常,异常详情:Request method ‘POST‘ not supported
2022-07-28 05:17:00 【wang0112233】
原因:
提供的方法是get 的,但是方法的参数用的是一个对象
fegin不支持参数为请求对象,会把get请求转化为post
提供的fegin方法
@FeignClient("mod-role-center")
public interface ITestService {
@GetMapping({"/v3/role/roleUserList"})
ResultVO roleUserList(RoleManageRoleUserListReq req);
}如果解决:
自己这边定义一个fegin
@FeignClient("mod-role-center")
public interface ITestService {
@GetMapping({"/v3/role/roleUserList"})
ResultVO roleUserList(@RequestParam("id") Integer id, @RequestParam("pageSize") Integer pageSize, @RequestParam("pageNo") Integer pageNo);
}边栏推荐
- Dcgan:deep volume general adaptive networks -- paper analysis
- What are the methods of array objects in Es5 and what are the new methods in ES6
- Check box error
- ArrayList多线程安全解决办法
- The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies
- 【ARXIV2204】Simple Baselines for Image Restoration
- 从微服务基本概念到核心组件-通过一个实例来讲解和分析
- 2022 summer practice (first week)
- How to successfully test php7.1 connecting to sqlserver2008r2
- 阿里怎么用DDD来拆分微服务?
猜你喜欢

Struct模块到底有多实用?一个知识点立马学习

MySQL date and time function, varchar and date are mutually converted

Scope, execution process and life cycle of bean

CentOS7安装MySQL5.7

How to send and receive reports through outlook in FastReport VCL?

Thinking on multi system architecture design
![[paper notes] - low illumination image enhancement - zeroshot - rrdnet Network - 2020-icme](/img/e3/f9c6bfdbcd5dffd406e3f1d2331050.png)
[paper notes] - low illumination image enhancement - zeroshot - rrdnet Network - 2020-icme

使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题

MySQL practice 45 lectures

Microservice failure mode and building elastic system
随机推荐
Duoyu security browser will improve the security mode and make users browse more safely
IDEA配置 service(Run Dashboard) 服务,多模块同时启动
Why is MD5 irreversible, but it may also be decrypted by MD5 free decryption website
regular expression
Message forwarding mechanism -- save your program from crashing
使用nfpm制作rpm包
[internal mental skill] - creation and destruction of function stack frame (C implementation)
项目中问题合集
Jsonp single sign on permission verification
接口幂等性问题
block yandex bot
[slam] lvi-sam analysis - Overview
在外包公司两年了,感觉快要废了
解决Oracle使用in语句不能超过1000问题
【MySQL】MySQL时区问题、数据库时间相差8小时问题解决
Gan: generative advantageous nets -- paper analysis and the mathematical concepts behind it
How should programmers keep warm when winter is coming
Class class added in ES6
How practical is the struct module? Learn a knowledge point immediately
Melt cloud x chat, create a "stress free social" habitat with sound