public class ValidatorUtils extends Object
参考文档:http://docs.jboss.org/hibernate/validator/5.4/reference/en-US/html_single/
Constructor and Description |
---|
ValidatorUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
validateEntity(Object object,
Class<?>... groups)
校验对象
|
public static void validateEntity(Object object, Class<?>... groups) throws RRException
object
- 待校验对象groups
- 待校验的组RRException
- 校验不通过,则报RRException异常Copyright © 2021. All rights reserved.