RESTClient插件POST方法传递参数

RESTClient插件POST方法传递参数

1.设置Headers,增加一个Content-type: application/x-www-form-urlencoded;charset=UTF-8


 


2.在Body中定义你的参数,比如你的方法参数像这样:

@RequestParam("examTimeIdList[]") List<String> examTimeIdList, Integer uploadType

那么你在Body中应该这样写:examTimeIdList[]=01&uploadType=1

posted @ 2017-05-19 15:13  wjj1013  阅读(832)  评论(0编辑  收藏  举报