校验bindingResult @NotEmpty 用在集合类上面@NotBlank 用在String上面@NotNull 用在基本类型上 https://www.cnblogs.com/softidea/p/6044123.html