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

Publicado el: 05 octubre 2019
en el canal de: 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


En esta página del sitio puede ver el video en línea 42. Bean Validation Coding Step by Step - Part III - Implement Validation de Duración hora minuto segunda en buena calidad , que subió el usuario Miss Xing (邢老师) 05 octubre 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,076 veces y le gustó 74 a los espectadores. Disfruta viendo!