1.设置Headers,增加一个Content-type: application/x-www-form-urlencoded
2.在Body中定义你的参数,比如你的方法参数像这样:
@RequestParam("examTimeIdList[]") List<String> examTimeIdList, Integer uploadType那么你在Body中应该这样写:examTimeIdList[]=01&uploadType=1
本文介绍如何设置HTTP请求的Headers及Body参数。主要内容包括添加Content-type为application/x-www-form-urlencoded,并展示了如何在Body中定义和传递参数的具体示例。
1.设置Headers,增加一个Content-type: application/x-www-form-urlencoded
2.在Body中定义你的参数,比如你的方法参数像这样:
@RequestParam("examTimeIdList[]") List<String> examTimeIdList, Integer uploadType那么你在Body中应该这样写:examTimeIdList[]=01&uploadType=1
2329
1076

被折叠的 条评论
为什么被折叠?