The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
Apache Tomcat/7.0.69
当使用SpringMVC通过restful的方式返回,json数据的时候,抛出了如上所述的异常。
检查看看SpringMVC的配置文件是否有如下配置
<mvc:annotation-driven />