public interface Validator
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Object bean)
Validate the bean throwing an exception if the bean fails validation.
|
void validate(Object bean)
Typically the exception will be handled by a specific exception handler returning a 422 or 400 status code and usually a map of field paths to error messages.
bean - The bean to validateCopyright © 2019. All rights reserved.