public final class ValidationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
validate(String content,
Class<T> targetClass,
Class<?>... groups)
try to convert json content to target object
|
public static <T> T validate(String content, Class<T> targetClass, Class<?>... groups) throws ValidationException
T - return typecontent - jsontargetClass - target class that convert togroups - validator groupValidationExceptionCopyright © 2023 flmelody. All rights reserved.