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] org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot
- org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deseria
- Fastjson Error: Error: Cannot create inner bean ‘org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
- [Solved] org.springframework.context.ApplicationContextException: Failed to start bean ‘org.springframework.a
- [Solved] SpringBoot Startup Error: org.springframework.beans.factory.UnsatisfiedDependencyException Error creating
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org
- [Solved] ERROR org.springframework.boot.SpringApplication – Application run failed org.yaml.snakeyaml.scanner
- [Solved] HttpMessageNotReadableException: JSON parse error: Unrecognized field “xxxx“
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- [Solved] Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderA
- [Solved] Classnotfoundexception: org.springframework.core.nativedetector error
- [Solved] org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx‘
- [Solved] ApiPost Error: org.springframework.web.multipart.MultipartException
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- [Solved]Org.springframework.beans.factory.nosuchbeandefinitionexception error reported
- [Solved] org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class
- [Solved] Spring Boot Error: org.springframework.jdbc.datasource.embedded.EmbeddedData