42. Bean Validation Coding Step by Step - Part III - Implement Validation

Published: 05 October 2019
on channel: Miss Xing (邢老师)
2,076
74

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


On this page of the site you can watch the video online 42. Bean Validation Coding Step by Step - Part III - Implement Validation with a duration of hours minute second in good quality, which was uploaded by the user Miss Xing (邢老师) 05 October 2019, share the link with friends and acquaintances, this video has already been watched 2,076 times on youtube and it was liked by 74 viewers. Enjoy your viewing!