Spring MVC Date format validation with JSR303
问题 I'm using Spring MVC with JSR303 to do my input validation. A form I've created has a couple of date fields that are bound to Date objects within the object backing the form. I'm using JSR303 to do the validation for the Date using @Future . I'm also using @DateTimeFormat(pattern="dd/MM/yyyy") , (I know it's not validation). How do I validate the date format of the String on the form? If I leave the other required fields blank ( @NotEmpty ) and enter a non-valid date in the form 'dd/MM/yy' it