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 - Spring Tutorial
From the course: Complete Guide to Spring MVC
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Declaration overview4m 32s
-
(Locked)
Declaration: AOP proxies6m 23s
-
(Locked)
Mapping requests overview5m 19s
-
Mapping requests: URI patterns5m 50s
-
(Locked)
Mapping requests: Consumable media types4m
-
(Locked)
Mapping requests: Producible media types3m 53s
-
(Locked)
Handler methods overview3m 9s
-
(Locked)
Handler methods: Method arguments2m 54s
-
(Locked)
Handler methods: Return values5m 2s
-
(Locked)
Handler methods: Type conversion4m 47s
-
(Locked)
Model3m 16s
-
(Locked)
@InitBinder overview7m 46s
-
(Locked)
Validation3m 33s
-
(Locked)
Exceptions overview4m 39s
-
(Locked)
Exceptions: Method arguments3m 56s
-
(Locked)
Exceptions: Return values6m 47s
-
(Locked)
Controller advice10m 32s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-