How to validate bean on Spring's WebClient?
EDIT
You can use Apache Commons Validator which is part of JSR-303 implementations
Apache Commons Validator provides the building blocks for both client side validation and server side data validation. It may be used standalone or with a framework like Struts.
Or use relevant proprietary client-side solution
JSR-303 doesn’t cover client-side validation, so web frameworks supporting this JSR need to come up with proprietary client-side solutions. Tapestry provides client-side validation for the following JSR-303 constraints
You can call validator manually:
@Autowiredprivate final SmartValidator validator;BeanPropertyBindingResult errors = new BeanPropertyBindingResult(entity, "entity");validator.validate(entity, errors);if (errors.hasErrors()) { //...}