public class ValidatorUtils extends Object
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 MyException
object
- 待校验对象groups
- 待校验的组MyException
- 校验不通过,则报BusinessException异常Copyright © 2019. All rights reserved.