Spring中使用@ResponseBody时报
The resource identified by this request is only capable of generating responses with characteristics错误
如果添加了Jackson包,并且返回的对象有get和set方法,这时就可能是spring与Jackson包的版本问题。
spring4.0以上的要使用2.0以上的Jackson包。否则就会出现以上错误
Spring中使用@ResponseBody时报
The resource identified by this request is only capable of generating responses with characteristics错误
如果添加了Jackson包,并且返回的对象有get和set方法,这时就可能是spring与Jackson包的版本问题。
spring4.0以上的要使用2.0以上的Jackson包。否则就会出现以上错误