Bean Validation
Bean Validation checks user input against rules written as annotations on the Java fields, such as @NotBlank, @Email and @Min.It is used so bad data (empty names, wrong emails, invalid mobile numbers) is rejected before it reaches your logic or the database.You put the rules on the model, add @Valid on the controller parameter, and […]
