当前位置:   article > 正文

org.springframework.http.converter.HttpMessageNotReadableException 解决方案

org.springframework.http.converter.HttpMessageNotReadableException 解决方案

出现情况:

spring boot使用@RequestHeader,@RequestBody等注解时

解决方案:

1.检查实际请求参数是否匹配

2.检查请求方法,请使用POST

3.如果使用内置TOMCAT的spring boot,请调整spring-boot-starter-parent的版本(高/低?未知)我是从2.2.6.RELEASE调整到了2.3.0.RELEASE解决了问题

报错信息:

2021-10-06 17:06:52.438  WARN 578058 --- [nio-7002-exec-7] .w.s.m.s.DefaultHand
lerExceptionResolver : Resolved [org.springframework.http.converter.HttpMessage
NotReadableException: Required request body is missing: public com.sdu.annivers
ary.Entity.JsonResult com.sdu.anniversary.Controller.Controller.saveProgress(ja
va.lang.String,com.alibaba.fastjson.JSONObject)]


                
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/883752
推荐阅读
相关标签
  

闽ICP备14008679号