Spring's Json not being resolved with appropriate response

前端 未结 8 2060
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 11:12

I\'ve tried to have a controller in Spring return a JSON response to no avail using the Jackson classes as recommended with 3.0. I\'ve got the jackson jar files(jackson-core

8条回答
  •  长情又很酷
    2020-12-03 12:03

    Get rid of all Jackson beans, and of the json mapping in the negotiating resolver. the mvc:annotation-driven should configure everything you need for the Jackson serialization to work.

提交回复
热议问题