首页 > 代码库 > spring mvc 4.1 返回json报406错误的解决办法

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

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 />


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