您的位置:首页 > 其它

RESTClient插件POST方法传递参数

2016-08-25 11:11 204 查看
1.设置Headers,增加一个
Content-type: application/x-www-form-urlencoded
2.在Body中定义你的参数,比如你的方法参数像这样:
@RequestParam("examTimeIdList[]") List<String> examTimeIdList, Integer uploadType
那么你在Body中应该这样写:examTimeIdList[]=01&uploadType=1

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: