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

后台报错:

Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: Could not read document: Unexpected character ('m' (code 109)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('m' (code 109)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

前端报错:

POST http://localhost:8081/xxx 400 (Bad Request)


网上说原因是后台的这个Vo类有Integer类型的属性,同时使用了注解@requsetBody,而前端传来的是null,这个会有错
会有拆包装为int时空指针(没有明白)

我改一下前端的contentType,问题解决了。所以产生错误的原因就是上面所说的,还有其他的方法解决这个问题,
知道了是上面这个原因就是最重要的。

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

  1. oracle 10g rac 包root.sh报错,案例:Oracle Rac root.sh报错 Failed to create keys in the OLR

    天萃荷净 [root@web1 grid]# /u01/app/11.2.0/grid/root.sh Performing root user operation for Oracle 11g Th ...

  2. tensorflow卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t

    tensorflow卷积报错Failed to get convolution algorithm. This is probably because cuDNN failed t 说明:环境是ten ...

  3. Pyinstaller 打包exe 报错 “failed to execute script XXX“的一种解决方案

    Pyinstaller 打包exe 报错 "failed to execute script XXX"的一种解决方案 参考文章: (1)Pyinstaller 打包exe 报错 & ...

  4. tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].

    一.问题 tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost]. 多半情况是找不到 ...

  5. 解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.

    解决IntelliJ IDEA报错Failed to read candidate component class: file [ ]; nested exception is org.springf ...

  6. linux ssh 报错failed - POSSIBLE BREAK-IN ATTEMPT

    linux ssh 报错failed - POSSIBLE BREAK-IN ATTEMPT 问题故障: 今天在新租的虚拟机上,发现ssh登陆机器的时候报错,如下: [root@pictures_ne ...

  7. hive日志位置(日志定位报错:Failed with exception Unable to move sourcehdfs://namenode/tmp/hive-pmp_bi/h)...

    Hive中的日志分为两种 1. 系统日志,记录了hive的运行情况,错误状况. 2. Job 日志,记录了Hive 中job的执行的历史过程. 日志查看方法 1,在本地运行机器上 hive日志存储位置 ...

  8. centos7 network网络服务重启报错failed to start lsb

    network网络服务重启报错failed to start lsb 解决办法: 先看log里哪个网卡没有启动 cat /var/log/messages | grep network 查看网卡mac ...

  9. Android Studio 3.1.4 报错Failed to find style 'coordinatorLayoutStyle' in current theme

    使用最新版的AS3.1.4安装后 运行hello world程序,预览报错Failed to find style 'coordinatorLayoutStyle' in current theme. ...

最新文章

  1. JavaEE 要懂的小事:一、图解Http协议
  2. 一年中最后一个月的最后一天说说_新的一年又开始了说说 年底最后一天的心情说说...
  3. UVA1602 Lattice Animals 网格动物
  4. mysql数据库表中的类型_MySQL数据库中表类型MyISAM与InnoDB的区别
  5. 【HDU - 2112】 HDU Today(dijkstra单源最短路 + map转换)
  6. [6] ADB 文件管理
  7. QML笔记-对QML中信号与槽的基本认识
  8. 性能优化挑战重重,鲲鹏 HPC 如何突破算力桎梏?
  9. 事务隔离级别和传播行为_.spring的事务有几种方式?spring事务的隔离级别和传播行为是什么?...
  10. 中国IT人,你们是否从没想过开发一款伟大的产品?
  11. python3 messagebox_如何在Python3.4中正确实现tkMessageBox?
  12. webrtc之SVC实现(十)
  13. 以一定概率执行某段代码(Python实现)
  14. java 7 collection 详解(一)
  15. 关于man命令后面加数字
  16. 2022: Python下载安装教程
  17. html5页面中添加腾讯地图api
  18. html中的input框中的value值到底是什么
  19. 亚马逊pii权限开通,公共开发者申请材料;sp api开通
  20. 今年生男孩取什么名好的超简单起名方法

热门文章

  1. [日推荐]『二更美食地图』美食去哪找?别问男票问它呀!
  2. C语言offsetof(TYPE, MEMBER)全解
  3. 指尖江湖李忘生鸿蒙初开,剑网3指尖江湖李忘生PVP秘籍搭配方法
  4. codeforces 712 div2 ABC
  5. 【电子学会】2022年09月图形化一级 -- 踢足球
  6. 青课堂第一期--视频制作
  7. 这就是视频列表二维码,一个二维码搞定视频列表播放
  8. 我用 Python 把老板辞退了
  9. wine微信切换窗口透明框——解决方案
  10. 呕心沥血整理出来的mysql执行流程,一定要看!