SpringBoot Error: org.springframework.http.converter.HttpMessageNotReadableException
org.springframework.http.converter.HttpMessageNotReadableException:
Required request body is missing: * * * * *
at.org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:161)
:
After careful investigation, I found that there are no errors in my other codes. Finally, the parameter submission method is wrong, because the @requestbody
annotation is mainly used to accept JSON
data in post and put
methods, so @postmapping
should be used here. It’s a perfect solution. I’m really getting farther and farther on the road of rookie
Read More:
- [Solved] HttpMessageNotReadableException: JSON parse error: Unrecognized field “xxxx“
- [Solved] org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot
- [How to Fix]Spring 3.0 could not find acceptable representation
- Fastjson Error: Error: Cannot create inner bean ‘org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
- Using Post no Body Error: socket hang up [How to Solve]
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseria
- [Solved] “status“:405,“error“ Request method ‘POST‘ not supported“
- Ureport opens the report files Error: baseMapper [How to Solve]
- SpringCloud Use openFeign Multipartfile to Upload Files Error: Current request is not a multipart request
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- [Solved] javax.crypto.BadPaddingException: Decryption error
- JSON parse error: invalid UTF-8 solution series [How to Solve]
- [Solved] ClientAbortException: java.io.IOException: Connection reset by peer
- OpenFeignClient Use Object to Receive text/plain Type Return Error
- I/O error while reading input message; nested exception is java.io.IOException: Stream closed
- Caused by: java.lang.IllegalStateException (How to Fix)
- [Solved] JSON parse error: Cannot deserialize instance of `java.util.ArrayList<..> out of START_OBJECT token;
- [Solved] org.thymeleaf.exceptions.TemplateInputException: Error resolving template
- Spring MVC uses Ajax to submit requests asynchronously to complete login
- [Solved] Feign Call Port Error: HttpMessageNotReadableException:JSON parse error:Illegal character ((CTRL-CHAR, code 31)