1.问题现象Tomcat7+Spring4.1.4,返回json字符串时发生406错误
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
HTTP Status 406 -
type Status report
message
description The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.
Apache Tomcat/7.0.52
2.具体实现 @RequestMapping("/listAll")
@ResponseBody
public Map<String, Object> listAll() {
List<Device> list = deviceService.listAll();
if (list != null) {
Map<String, Object> result