Springboot接收参数为实体时,swagger参数注释,@RequestBody 写法
@ApiOperation("保存")
@ApiImplicitParams({
@ApiImplicitParam(name = "opsName", value = "姓名")
})
@PostMapping("/save")
public ApiResponseBody save(@ModelAttribute @ApiIgnore @RequestBody @Validated OpsStudent opsStudent) {
iOpsStudentService.save(opsStudent);
return ApiResponseBody.defaultSuccess();
}