Spring Boot Restful + PostgreSQL + JPA Validation @NotNull @Size @Min @Max @Pattern - Part 7

preview_player
Показать описание
In this video I tried to cover most commonly used validation annotation in Spring Validation with custom response messages. I also covered how we can use regex to validate the user input.
@NotNull
@Size
@Min
@Max
@Pattern
@Validated
Рекомендации по теме
Комментарии
Автор

How to validate integer value for int data type of we pass 7.5 double value

srinivashs
Автор

Hi.
Check out 10:44 I cannot see what is that symbol before $ inside the @Pattern annotation.

I think thats why i always take the error message even though i wrote department correctly.

turgaycabalak
Автор

have you ever find this error when use the @Pattern "Pattern is not an annotation type"??? all others annotation works for me except the @Pattern

alejandroluisromerodiaz