postman 怎么一次提交多条的json数据?

Blade 未结 1 612
3092844924
3092844924 剑圣 2021-08-25 18:28

一、该问题的重现步骤是什么?

1. I@~LA{$IIN6`_[H6~$%6FU0.png


2.源码controller

/**

* 新增或修改

*/

@PostMapping("/submit")

@ApiOperationSupport(order = 6)

@ApiOperation(value = "新增或修改", notes = "传入formmain0624")

public R submit(@Valid @RequestBody Formmain0624 formmain0624) {

return R.status(formmain0624Service.saveOrUpdate(formmain0624));

}



二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。

{

    "code"400,

    "success"false,

    "data": {},

    "msg""JSON parse error: Cannot deserialize instance of `org.springblade.modules.desk.entity.Formmain0624` out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `org.springblade.modules.desk.entity.Formmain0624` out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 1]"

}

五、若有更多详细信息,请在下面提供。



1条回答
  • 2021-08-26 16:13

    据我所知不支持,你要不就把后端参数改成 List 接口

    0 讨论(0)
提交回复