I struggled with this for a while and could not find a solution. I run SpringBoot guides and accessing JPA data ( http://spring.io/guides/gs/accessing-data-rest/ ) with REST does not work.
Just downloading it and running it works great, allowing a GET call
http:
using postman. However, whenever I try to execute PUT or POST, I get the following error:
{ "cause": null, "message": "No suitable HttpMessageConverter found to read request body into object of type class hello.Person from request with content type of text/plain;charset=UTF-8!" }
json which I pass using PUT,
{ "firstName": "Dave", "lastName": "Something" }
This is just a vanilla project with no changes. Many other manual projects work fine, so I know that MVN, Spring boot, etc. They work fine.
Tried a lot of forums, but nothing was offered.
Any help would be greatly appreciated.
Thanks Dave
source share