当前位置:网站首页>Feignclient calls the get method and reports an error resultvo{result= unknown exception. Exception details: request method 'post' not supported
Feignclient calls the get method and reports an error resultvo{result= unknown exception. Exception details: request method 'post' not supported
2022-07-28 05:29:00 【wang0112233】
reason :
The method provided is get Of , But the parameter of the method is an object
fegin Parameter is not supported as request object , Will be able to get The request translates into post
Provided fegin Method
@FeignClient("mod-role-center")
public interface ITestService {
@GetMapping({"/v3/role/roleUserList"})
ResultVO roleUserList(RoleManageRoleUserListReq req);
}If we solve :
Define one on your side 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);
}边栏推荐
- MySQL date and time function, varchar and date are mutually converted
- Digital twin solutions inject new momentum into the construction of chemical parks
- How about ink cloud?
- 2021CSDN博客之星评选,互投
- 项目中问题合集
- Antd setfieldsvalue warning problem cannot use 'setfieldsvalue' until you use 'getfielddecorator' or
- Flask Development & get/post request
- lamda 获取当前循环数,AtomicInteger
- 框架一步一步方便使用的流程
- VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard
猜你喜欢

First acquaintance with C language (1)
![[internal mental skill] - creation and destruction of function stack frame (C implementation)](/img/a9/81644ee9ffb74a5dc8ff1bc3977f49.png)
[internal mental skill] - creation and destruction of function stack frame (C implementation)

多线程进阶:volatile的作用以及实现原理

VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard

框架一步一步方便使用的流程

Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid

21 day SQL punch in summary

测试开发---自动化测试中的UI测试

SSLError

【CVPR2022】On the Integration of Self-Attention and Convolution
随机推荐
Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 2)
You must configure either the server or JDBC driver (via the ‘serverTimezone)
Scope, execution process and life cycle of bean
mysql中使用list作为参数进行查询
LocalDateTime去掉T,JSONField失效
regular expression
Non functional test
7.<tag-字符串和API的取舍>补充: 剑指 Offer 05. 替换空格
【ARXIV2205】Inception Transformer
HashSet add
SSM project quick build project configuration file
Share several methods of managing flag bits in C program
Oracle创建表、删除表、修改表(添加字段、修改字段、删除字段)语句总结
List<Long>,List<Integer>互相转换
mysql 为查询结果增加序号
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
[computer level 3 information security] overview of information security assurance
凛冬已至,程序员该怎么取暖
【CVPR2022 oral】Balanced Multimodal Learning via On-the-fly Gradient Modulation
What are the methods of array objects in Es5 and what are the new methods in ES6