【发布时间】:2015-09-29 00:49:29
【问题描述】:
我正在使用postman packaged app 发送帖子请求。
我想请求以下控制器。
如何使用邮递员对象(带值)和使用原始格式的列表发送帖子请求正文?
@RequestMapping(value = "register", method = RequestMethod.POST)
@ResponseBody
public ResponseMessage save(@RequestBody Freelancer freelancer, @RequestBody List<Integer> skills) {
我试过这样:
{
"address": "colombo",
"username": "hesh",
"password": "123",
"registetedDate": "2015-4-3",
"firstname": "hesh",
"contactNo": "07762",
"accountNo": "16161",
"lastName": "jay"
}
{
"array[0]" :1436517454492,
"array[1]" :1436517476993
}
【问题讨论】: