com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0

1:首先看到浏览器端报了500异常,可知服务器这端出现了问题(详情见这篇http常见错误码和错误分析
com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0
2:看到服务器报的错:com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0

3:首先传过来的参数是不是json类型,很明显contentytpe 没有设置为application/json,从而导致了反序列化出了错。com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0
4:服务器端代码:
com.alibaba.fastjson.JSONException: syntax error, expect {, actual error, pos 0
produces=”application/json; utf-8“限制方法请求必须为application/json ,且编码格式为utf-8