参数上增加
@Validated({Group.Add.class})
Integer
@NotNull
@Max(Integer.MAX_VALUE)
private Integer stature;
String
/**
* 版本名称
*/
@Length(min = 1, max = 100,groups = {Group.Add.class,Group.Update.class})
@NotBlank(message = "名称不能为空",groups = {Group.Add.class,Group.Update.class})
private String verName;
id
@NotBlank(message = "必须指定数据id",groups = {Group.Update.class})
private String id;
Date
@Past
private Date birth;`在这里插入代码片`
嵌套对象
@Valid
List<BasicQuotaOptionRequestVO> options;