Back to course

Data Validation with @Valid

Spring Boot 0 to Hero: The Complete Java Backend Masterclass

Input Validation

Use Hibernate Validator (Bean Validation) to ensure input data is correct. Use annotations like @NotBlank, @Size, and @Email on your DTO classes.