the server responded with a status of 406 (Not Acceptable)

来源:互联网 发布:苹果手机不能用4g网络 编辑:程序博客网 时间:2024/06/08 11:01

这里写图片描述

在使用SpringMVC的如上图中把java bean对象以json数据的格式返回给前台时报406错误,加入下图的包即可(若还有其他同类型错误,也可以探讨)。
这里写图片描述

GitChat分享:如何成为程序员面霸
http://gitbook.cn/gitchat/activity/59e9a74ea8275c3bd0b61487

知乎Live:Java程序员的成长体系
https://www.zhihu.com/lives/904735941707587584

阅读全文
0 0