Spring-MVC 406 Not Acceptable instead of JSON Response

后端 未结 5 2000
天涯浪人
天涯浪人 2020-12-03 08:02

I\'m trying to return a JSON response with Spring 3.0.6, but I get a 406 response \"Not Acceptable\", with the description: \"The resource identified by this request is onl

5条回答
  •  青春惊慌失措
    2020-12-03 08:43

    In terms of the MappingJacksonJson processing, you'll need to make sure that the Jackson ObjectMapper supports your object type for serialisation.

提交回复
热议问题