Spring-MVC 406 Not Acceptable instead of JSON Response

后端 未结 5 1999
天涯浪人
天涯浪人 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:42

    although this thread is a little old...

    u need to add the following (maven dependency):

    org.codehaus.jacksonjackson-mapper-asl1.9.13

提交回复
热议问题