Is it possible to use Bean Validation annotations like @Past
or @Length
on Request Parameters in spring mvc?
I would like to do something like:
@RequestMapping(method = RequestMethod.POST)
public RedirectView initiateSignup(@RequestParam @Valid @Past Date birthdate, BindingResult birthdateResult,
HttpServletResponse httpServletResponse) throws HttpMediaTypeNotAcceptableException {