前端或者后台调用API接口 required request missing body

@InputLog
@ApiOperation(value = "删除视频信息", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@PostMapping("/delMediaInfo")
public RestVo removeMedia(@ApiParam(name = "list", allowMultiple = true, value = "视频信息ID", required = true) @RequestBody List list)

前端或者后台调用的,通过list接收,需要加上 allowMultiple = true

你可能感兴趣的:(java)