I am using @ResponseBody to return Json object in Spring MVC. It works as expected on release 4.0.7 and 3.2.11, but it returns HTTP status 406 when I try to use the latest S
I was struggling with similar issue migrating from 3.2 to spring 4.2. Was getting
posting it here so people can find it by exception name :) It took me half a day to find this article. Thanks @Vito and @Aias
Combination of both previous answers work as well, if you do not want register custom contentNegotiationManager you can do following:
remove all jackson dependencies from
and use latest one
com.fasterxml.jackson.jaxrs
jackson-jaxrs-base
2.6.1