Validations in Spring Boot
Validations in Spring Boot
Spring Boot
@mauricioperez
@mauricioperez
Validations in
01
Spring Boot
When validating data in a Spring Boot application,
we can reach it from different approaches. But
the main character comes when we integrate this
dependecy into our pom.xml
Hibernate for
02
validating??
Annotations to
03
validate date
Here you have the most important built-in
annotations that you can leverage for your
project:
1. @NotNull
2. @AssertTrue
3. @Size
4. @Min
5. @Max
6. @Email
7. @NotEmpty
8. @NotBlank
9. @Positive and @PositiveOrZero
10. @Past and @PastOrPresent
11. @Future and @FutureOrPresent
@mauricioperez
Approaches of
04
validation
1. In a database entity and you want to validate
each field
Approaches of
05
validation
A special
06
approach
A special
07
approach
@mauricioperez