Interface Insert
public interface Insert
插入操作验证组
用于Bean Validation中的验证组功能,标记插入操作相关的验证规则
在JSR 380规范中,验证组允许在不同场景下应用不同的验证规则
使用示例:
public class User {
{@literal @}NotNull(groups = Insert.class)
private String name;
{@literal @}NotNull(groups = Insert.class)
private String email;
// 其他字段...
}
- Author:
- Kerbores(kerbores@riemann.tech)