使用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中加入如下依赖解决

<dependency>
       <groupId>org.codehaus.jackson</groupId>
       <artifactId>jackson-mapper-asl</artifactId>
       <version>1.9.11</version>
</dependency>

 

posted @ 2016-05-13 10:30  Coalber  阅读(358)  评论(0编辑  收藏  举报