@NotBlank:只用在String上,表示传进来的值不能为null,而且调用trim()后,长度必须大于0
@NotNull: Integet上使用 不能为null,但可以为empty(分配了内存空间,但值为空)
@NotEmpty:List上使用 不能为null,而且长度必须大于0
@Valid放在controller中,会校验参数,但是没有返回具体的错误。 后续再看看
@RequestMapping("/save")
public R draw(@Valid @RequestBody XxForm xxForm){}
参考: https://blog.csdn.net/qq_35992900/article/details/80068680