1 在pojo类中bo对象中添加验证规则,如:
public class CenterUserBO { @NotBlank(message = "用户昵称不能为空") @Length(max = 12, message = "用户昵称不能超过12位") @ApiModelProperty
京公网安备 11010502049817号