spring mvc 4.1 返回json报406错误的解决办法

こ雲淡風輕ζ 提交于 2019-11-30 14:02:04

spring mvc 4.1 返回json报406错误的解决办法

浏览器访问,报

The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.


解决办法,检查springmvc的配置文件中有无

<mvc:annotation-driven />


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!