与controller层的接口入参注解@Valid有关的实体类判断空的注解
1.@NotBlank:专门用于字符串判断 private String userName;
2.@NotNull: 检验非字符串类型 private Long userId; private Integer deptId;
3.@NotEmpty:用于集合,数组,map,字符串 private List<Long> roleIds;
4.@Size(min =3,max=5,message= "长度不能小于3,不能大于5")