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

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

浏览器访问,报json

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


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

<mvc:annotation-driven />
相关文章
相关标签/搜索