Interface Update


public interface Update
更新操作验证组

用于Bean Validation中的验证组功能,标记更新操作相关的验证规则

在JSR 380规范中,验证组允许在不同场景下应用不同的验证规则

使用示例:

public class User {
    {@literal @}NotNull(groups = Update.class)
    private Long id;
    {@literal @}NotNull(groups = { Insert.class, Update.class })
    private String name;
    // 其他字段...
}
Author:
Kerbores(kerbores@riemann.tech)