问题:
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers
解决方式:
1.导入json的jar
jackson-annotations-2.2.0.jar
jackson-core-2.2.0.jar
jackson-databind-2.2.0.jar
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
springmvc @ResponseBody 处理json返回406
猜你喜欢
转载自eminoda.iteye.com/blog/2241011
今日推荐
周排行