Hibernate验证用户提交对象信息
1 在pojo类中bo对象中添加验证规则,如:
public class CenterUserBO {
@NotBlank(message = "用户昵称不能为空")
@Length(max = 12, message = "用户昵称不能超过12位")
@ApiModelProperty
1 在pojo类中bo对象中添加验证规则,如:
public class CenterUserBO {
@NotBlank(message = "用户昵称不能为空")
@Length(max = 12, message = "用户昵称不能超过12位")
@ApiModelProperty