2019獨角獸企業重金招聘Python工程師標準>>>
1.
(1)數組的請求方式(post)
https://blog.csdn.net/qq_21205435/article/details/81909184
(2)數組的請求方式(get)
http://localhost:port/list?ages=10,20,30
后端接收方式:
@PostMapping("/xxx")
@ResponseBody
public Map<String, Object> xxx(@RequestParam(value = "ages[]") Integer[] ages,@RequestParam String type) {xxxxreturn map;
}
參考鏈接:https://www.jianshu.com/p/85251b746058
2.jsonObject 的請求方式(data 即為映射的bean屬性【
private JSONObject data;
】):
格式如下:
{"data": {"address": "上海", "contractList": [{"fileId": "001"}]}
}
?