Following is a code snippet from my controller:
@RestController @RequestMapping(Constants.REST_CONTROLLER_ENDPOINT) class ProductRestController { private final
Turns out that the @InitBinder method needs to be public for the validation to be invoked:
@InitBinder
@InitBinder public void initBinder(WebDataBinder binder) { binder.setValidator(productValidator); }