当前位置:网站首页>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);
}边栏推荐
- 多系统架构设计思考
- regular expression
- Long和Integer如何进行比较,为什么报错
- New arrow function in ES6
- 【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
- 导出excel,生成多个sheet页,并命名
- 21 day SQL punch in summary
- BeanUtils. Copyproperties cannot copy different list sets problem solving lists.transform function
- 多线程进阶:synchronized底层原理,锁优化、锁升级的过程
猜你喜欢

【计算机三级信息安全】信息安全保障概述

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

Digital twin solutions inject new momentum into the construction of chemical parks

The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window

【CVPR2022】Multi-Scale High-Resolution Vision Transformer for Semantic Segmentation

Redis 之布隆过滤器

How does Alibaba use DDD to split microservices?

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

Framework step by step easy-to-use process

repackag failed: Unable to find main class
随机推荐
Jsonp single sign on permission verification
Microservice failure mode and building elastic system
JUC笔记
类和对象【中】
Performance test classification
BeanUtils.copyProperties无法复制不同List集合问题解决 Lists.transform函数
Message forwarding mechanism -- save your program from crashing
SSLError
The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window
Non functional test
sql 查询list时两次的数据不一致,自动加上了limit
VMware Workstation 与 Device/Credential Guard 不兼容。禁用 Device/Credential Guard
凛冬已至,程序员该怎么取暖
C language characters and strings
Struct模块到底有多实用?一个知识点立马学习
FreeRTOS personal notes - task notification
Flask Development & get/post request
Oracle用sql查询某张表的字段信息(字段类型、长度等)
【CVPR2022】Multi-Scale High-Resolution Vision Transformer for Semantic Segmentation
Printf function of input and output function in C language