spring mvc 3.1 使用@ResponseBody注解是不能返回json数据
使用spring 3.1 @ResponseBody注解时出现如下错误
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers
最终解决办法是引入
jackson-core-as和jackson-mapper-asl两个jar包