我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

spring boot出现异常Method has too many Body parameters

我在spring boot中使用feign实现负载均衡时,在service中,我写了这么一个方法
@RequestMapping(value = "user/reg1")
public ResultVO reg1(@RequestBody UserVO userVO,HttpServletRequest request);

但是却报错了,告诉我Method has too many Body parameters,但是我在单独服务器中,在controller中这么写,完全没问题,唯独在这里却报错,简直了,人傻了,求帮忙解决一下呗

参考

Spring Boot OpenFeign: java.lang.IllegalStateException: Method has too many Body parameters - Stack Overflow The examples below demonstrate the issues experienced when using OpenFeign. The problem becomes evident when your response object has too many fields, which throws an error: Method has too many https://stackoverflow.com/questions/60221388/spring-boot-openfeign-java-lang-illegalstateexception-method-has-too-many-body/60271238#60271238

OpenFeign Client HTTP.GET: Method has too many Body parameters · Issue #1173 · OpenFeign/feign · GitHub This works: //Example 1 @Headers("Content-Type: application/json") @RequestLine("POST api/v2/clients") ClientResponse findAllClientsByUid1(@RequestBody ClientRequest request); But this doesn't work: //Example 2 @Headers("Content-Type: ap... https://github.com/OpenFeign/feign/issues/1173

近期文章

  • SwiftUI中对NavigationLink的封装
  • 输入3个学生的4门课程的考试成绩,编写程序计算并输出每个学生的平均分和每门课程的平均分。
  • 怎么获取table表格里input框里的数据,保存后传给后台,我写的保存不到页面上,大概的思路是什么
  • 零基础,什么都不会出了游戏和打字
  • c语言代码注释,详细一点,有赏
  • sql中文本字段为空判断
  • python用matplotlib中c和cmap的使用
  • Unity 关于Display的功能
  • 基于Jitsi的网页视频通话项目
  • 怎么办,学习一个框架 都是英文 看不了,,
  • 在用glm()进行线性回归时出现了contrasts can be applied only to factors with 2 or more levels
  • 集成androidannotations报错
  • openfeign默认的负载均衡不起作用
  • TiDB和mysql的概念区别
  • 第一次用vs code,这是出了啥问题?
  • 这该怎么办(小白刚学)
  • 微信小程序之话费充值
  • 几何图形的相交的判断的问题,要求求出相交图形的名字,用C语言进行
  • 请问一下,vc++和Ubuntu有什么区别
  • 求一个多种库,多类型连接,连接池的一个思路

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华