我遇到这个问题的时候看到request body这个字眼想到了和后端接口@RequestBody这个注解有关

然后看接口的时候就明白了,我在参数列表中使用了@RequestBody进行参数获取

但是接口的注解却是@GetMapping

报错原因是如果使用了@RequestBody注解的话,那么接口方法的注解需要搭配使用的是@PostMapping注解

不然无法把这个参数进行传递就会导致报错

---------------------解决方法----------------------

把后端接口的注解从@GetMapping改为@PostMapping

来源:org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing问题的一种解决方法参考 - 人菜话多帅瓜皮 - 博客园

org.springframework.http.converter.HttpMessageNotReadableException: Required request body is(亲测)相关推荐

  1. Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body

    idea报错信息:Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required requ ...

  2. org.springframework.http.converter.HttpMessageNotReadableException异常解决

    问题现场还原 最近研发过程中,后台代码是这么写的: @ApiImplicitParam(name = "X-Token", value = "登陆用户Token" ...

  3. 在JME中遇到org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: 问题的解决方法

    今天根据开发需求,需要在发布后台中创建一个书本,专栏中每本书的章节数需要200个左右,于是我想到了使用Jmeter工具帮助我完成这一任务,可是在实践过程中遇到了很多问题,后来解决了这些问题,因此,记录 ...

  4. 关于报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException

    关于这个报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableExcepti ...

  5. Jquery中使用ajax请求SSM后台时提示:org.springframework.http.converter.HttpMessageNotReadableException: Could no

    场景 Jquery中使用ajax向SSM后台请求数据时提示: org.springframework.http.converter.HttpMessageNotReadableException: C ...

  6. 异常:org.springframework.http.converter.HttpMessageNotReadableException

    异常:org.springframework.http.converter.HttpMessageNotReadableException 参考文章: (1)异常:org.springframewor ...

  7. postman测试遇到的奇葩问题之:HttpMessageNotReadableException: Required request body is missing

    postman测试遇到的奇葩问题之:HttpMessageNotReadableException: Required request body is missing 用postman测试导出接口 但 ...

  8. ORG.SPRINGFRAMEWORK.HTTP.CONVERTER.HTTPMESSAGENOTREADABLEEXCEPTION: COULD NOT READ JSON: UNRECOGNIZE

    post请求的时候,参数多了之后接口请求报错. @JsonIgnoreProperties(ignoreUnknown = true) 情况

  9. Django在根据models生成数据库表时报 missing 1 required positional argument on_delete(亲测)

    code: 1 #encoding=utf-82 from django.db import models3 # Create your models here.4 class BookInfo(mo ...

最新文章

  1. IDEA函数调用关系图插件
  2. python怎么将输入的数字变成列表_Python键盘输入转换为列表的实例
  3. python定义构造函数、包括颜色价格品牌_《Python编程与算法基础教程》(第二版),蒋洪宇,青松,第9章:课后练习,程序设计,版江红余,第九章,习题,答案...
  4. Expression Blend 定义RadioButton行为动画
  5. Redis源代码分析之sds, 动态数组
  6. docker为什么比虚拟机快
  7. volta架构 微型计算机,性能大爆炸 NVIDIA新GPU架构曝光
  8. 【POJ - 1556】The Doors (计算几何,线段相交)
  9. 能利用计算机来模拟某种真实的实验现象,自然现象或社会现象的课件是,《计算机辅助教学》课程复习资料...
  10. windows10下用cmd操作
  11. angular 字符串转换成数字_Python成为专业人士笔记–String字符串方法
  12. IDM最新版软件的安装下载和使用方法
  13. 等保2.0多少分合格?70分还是80分呢?
  14. 算法题:矩阵修改为黑白矩阵
  15. 一个真实的Windows XP SP 3镜像包 571MB大小
  16. 17 重定向(Redirect) vs 转发(Forward)
  17. 常用的图数据库(Neo4j、FlockDB、AllegroGrap、GraphDB、InfiniteGraph、TITAN、OrientDb)
  18. BIM+GIS技术融合发展 成为工程规划建设新热点
  19. 计算机键盘突然不能用了,如果联想笔记本电脑键盘突然无法使用怎么办?
  20. 推荐一个免费GIF动图下载的网站

热门文章

  1. QT的QSqlDatabase类的使用
  2. python打包脚本_py2exe打包python脚本
  3. 「Apollo」百度Apollo感知模块(perception)红绿灯检测代码完整+详细解析
  4. 1.使用C++封装一个链表类LinkList
  5. js获取url中的参数,url中传递中文的时候通过js解码的方式
  6. SQL 聚合函数一定要跟group by以及NULL的关系的案例精讲
  7. 数据库元数据数据字典查询_6_列出给定表的外键引用
  8. Python AdaBoost提升算法
  9. python 处理xml pandas_Python数据处理分析,解决pandas中所有的Excel疑难杂症(上)
  10. python中select用法_Python select及selectors模块概念用法详解