Shows you how to implement bean validation with hibernate-validator version 6.
It has one mistake in the video about @DateTimeFormat. In the video, I said, @DateTimeFormatter cannot be used for LocalDate. I was wrong, it doesn't work in that case, is because the pattern string ("mm-DD-yyyy") I put is against the standard, it should be "MM-dd-yyyy"
What's in the video is
@DateTimeFormat(pattern = "mm-DD-yyyy")
private LocalDate birthday;
If you change to configuration below, it should work. Sorry for that.
@DateTimeFormat(pattern = "MM-dd-yyyy")
private LocalDate birthday;
Source code link: https://github.com/TinaXing2012/Spring
Project Name: SpringValidationXML
Auf dieser Seite können Sie das Online-Video 42. Bean Validation Coding Step by Step - Part III - Implement Validation mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Miss Xing (邢老师) 05 Oktober 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,076 Mal angesehen und es wurde von 74 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!