From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Validation

Validation

- [Instructor] Validation. Method validation in Spring MVC refers to the process of automatically validating method parameters and return values against predefined constraints. It helps ensure data integrity and consistency within your applications. For this section, I do want to start off by breaking down Java Bean Validation because in the first sentence in the documentation, as you see here, it says that, "Spring MVC has built in validation for @RequestMapping methods, including Java Bean Validation." So being that this is a complete guide, let's make sure that we understand that these are two separate mechanisms at our disposal, both Spring Boot Java Validation and Spring MVC Validation. While the terms might seem interchangeable, they actually refer to slightly different aspects of validation within the Spring ecosystem. Spring Boot Java Bean Validation. The focus here is primarily concerned with validating Java Bean objects and their properties. Validation is the process of…

Contents