当前位置:网站首页>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);
}边栏推荐
- POJ 2763 housewife wind (tree chain partition + edge weighting point weight)
- 2022 summer practice (PowerDesigner tutorial learning record) (first week)
- Microservice failure mode and building elastic system
- 架构设计思考之一(SSO设计)
- Mysql数据库索引(innodb引擎)
- FreeRTOS个人笔记-任务通知
- oracle查看锁表语句、解锁方法
- Applet import project
- First acquaintance with C language (1)
- Anaconda common instructions
猜你喜欢

Gan: generative advantageous nets -- paper analysis and the mathematical concepts behind it

Flask Development & get/post request

Scanf function of input and output function in C language

Duoyu security browser will improve the security mode and make users browse more safely

First acquaintance with C language (2)

IDEA使用dev-tool实现热部署

11.< tag-动态规划和子序列, 子数组>lt.115. 不同的子序列 + lt. 583. 两个字符串的删除操作 dbc
![Classes and objects [medium]](/img/0a/955d00d63f06e7e15e946599628edf.png)
Classes and objects [medium]

类和对象【中】

Database date types are all 0
随机推荐
HashSet add
Antd setfieldsvalue warning problem cannot use 'setfieldsvalue' until you use 'getfielddecorator' or
Implementation of simple upload function in PHP development
IDEA配置 service(Run Dashboard) 服务,多模块同时启动
Keil Chinese garbled code solution
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
PC side bug record
First acquaintance with C language (1)
【CVPR2022】Lite Vision Transformer with Enhanced Self-Attention
Struct模块到底有多实用?一个知识点立马学习
The default isolation level of MySQL is RR. Why does Alibaba and other large manufacturers change to RC?
C language: some self realization of string functions
Google browser cannot open localhost:3000. If you open localhost, you will jump to the test address
使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题
Activation functions sigmoid, tanh, relu in convolutional neural networks
FreeRTOS个人笔记-任务通知
YUV to uiimage
SimpleDateFormat线程不安全和DateTimeFormatter线程安全
阿里怎么用DDD来拆分微服务?
Supervisor series: 5. Log