Spring Boot Rest Validation Example with Hibernate Bean Validation Constraints

Опубликовано: 28 Сентябрь 2024
на канале: Java Puzzle
370
5

In this video, we will learn how to validate Spring boot REST API requests using Hibernate validator.

In Java, the Java Bean Validation framework has become the de-facto standard for handling validations in Java projects.

JSR 380 is a specification of the Java API for bean validation and this ensures that the properties of a bean meet specific criteria, using annotations such as @NotNull, @Min, and @Max.

Source code available at https://github.com/sawankarn/spring-b...