使用ResponseBody页面返回406错误

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

 

出现以上错误信息。 在mvn中加入以下依赖解决app

<dependency>
       <groupId>org.codehaus.jackson</groupId>
       <artifactId>jackson-mapper-asl</artifactId>
       <version>1.9.11</version>
</dependency>
相关文章
相关标签/搜索