【无标题】Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type ‘application
Springboot 写接口
前台传递数组 转换为JSON格式
JSON.stringify(data)
后台接口
@RequestBody 接收
需要使用
JSONObject jsonObject
来吧JSON数据转换成Array 数组格式
JSONArray jsonArray= jsonObject.getJSONArray(“JSON数据对象名称”);
如果报错
Resolved [org.springframework.web.HttpMediaTypeNotSupportedException
原创
2021-12-11 00:41:08 ·
1016 阅读 ·
0 评论