关于报错:Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException
关于这个报错: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相关推荐
- 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 ...
- 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 ...
- Pyinstaller 打包exe 报错 “failed to execute script XXX“的一种解决方案
Pyinstaller 打包exe 报错 "failed to execute script XXX"的一种解决方案 参考文章: (1)Pyinstaller 打包exe 报错 & ...
- tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
一.问题 tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost]. 多半情况是找不到 ...
- 解决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 ...
- linux ssh 报错failed - POSSIBLE BREAK-IN ATTEMPT
linux ssh 报错failed - POSSIBLE BREAK-IN ATTEMPT 问题故障: 今天在新租的虚拟机上,发现ssh登陆机器的时候报错,如下: [root@pictures_ne ...
- hive日志位置(日志定位报错:Failed with exception Unable to move sourcehdfs://namenode/tmp/hive-pmp_bi/h)...
Hive中的日志分为两种 1. 系统日志,记录了hive的运行情况,错误状况. 2. Job 日志,记录了Hive 中job的执行的历史过程. 日志查看方法 1,在本地运行机器上 hive日志存储位置 ...
- centos7 network网络服务重启报错failed to start lsb
network网络服务重启报错failed to start lsb 解决办法: 先看log里哪个网卡没有启动 cat /var/log/messages | grep network 查看网卡mac ...
- 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. ...
最新文章
- JavaEE 要懂的小事:一、图解Http协议
- 一年中最后一个月的最后一天说说_新的一年又开始了说说 年底最后一天的心情说说...
- UVA1602 Lattice Animals 网格动物
- mysql数据库表中的类型_MySQL数据库中表类型MyISAM与InnoDB的区别
- 【HDU - 2112】 HDU Today(dijkstra单源最短路 + map转换)
- [6] ADB 文件管理
- QML笔记-对QML中信号与槽的基本认识
- 性能优化挑战重重,鲲鹏 HPC 如何突破算力桎梏?
- 事务隔离级别和传播行为_.spring的事务有几种方式?spring事务的隔离级别和传播行为是什么?...
- 中国IT人,你们是否从没想过开发一款伟大的产品?
- python3 messagebox_如何在Python3.4中正确实现tkMessageBox?
- webrtc之SVC实现(十)
- 以一定概率执行某段代码(Python实现)
- java 7 collection 详解(一)
- 关于man命令后面加数字
- 2022: Python下载安装教程
- html5页面中添加腾讯地图api
- html中的input框中的value值到底是什么
- 亚马逊pii权限开通,公共开发者申请材料;sp api开通
- 今年生男孩取什么名好的超简单起名方法