Skip to main content

Bean Validation

Learn Bean Validation (Validation, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Bean Validation is the standard (JSR 380 / Jakarta Validation) for declaring constraints as annotations on fields, getters and parameters. Common constraints : @NotNull , @NotBlank , @Size , @Min , @Max , @Email , @Pattern . Implementation : the spec is only an API; Hibernate Validator is the reference provider that Spring Boot pulls in with spring-boot-starter-validation .

More lessons in Validation