4.1springmvc返回json问题

用的hibernate+springmvc+spring 都是4.0+的,用了jackson-annotation,jack-core,jackson-databind,都是2.6.0版本,开启了mvc:annotation-driven,然而返回json总是报406:The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问