Spring Boot Restful + PostgreSQL + JPA Validation @NotNull @Size @Min @Max @Pattern - Part 7
ฝัง
- เผยแพร่เมื่อ 13 ต.ค. 2024
- 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
So useful, so useful tq
How to validate integer value for int data type of we pass 7.5 double value
cool!
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
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.