您的位置:首页 > 编程语言 > Java开发

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

2014-11-01 00:00 316 查看
摘要: The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.

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 />
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  springmvc4