@NotEmpty 用在集合上面
@NotBlank用在String上面
@NotNull用在基本数据类型上面
1. @NotEmpty
Asserts that the annotated string, collection, map or array is not {@code null} or em
Hibernate validator有下面三种注释来限制输入参数必须非空
@NotBlank
Validate that the annotated string is not null or empty. The difference to NotEmpty is that trailing whitespace