Develop Custom Validators for Spring Web-app | A step by step guide to Hibernate Validator[Advanced]
Let's learn to create ANNOTATIONS to validate web forms. In this video, We will develop our custom validators.
We must aware of these concepts as there is no real-world application exists which doesn't use custom validators.
There are different ways to build custom validators. Today we will develop custom validators using the JSR 303/ 349/ 380. We will use the hibernate validators / Java bean validation API as the dependency.
Our goal is here to create some annotations like @Size, @NotNull, @NotBlank. In this video, we will create an annotation called @Age to validate the age field of our project.
Below are the contents we will be covering in this tutorial.
Video Map:
⏱️TIMESTAMPS⏱️
Introduction 00:00
Bean Validation API [remaining] : 06:09
Create Custom Annotation[Theory] : 15:05
Java Retention Policy : 21:10
Custom Validation constraint[Theory] : 29:27
The 20 Minutes Challenge: 32:56
Looking into Hibernate Validator source code
@Size/ @NotBlank Source code Analysis: 34:53
Understanding the Resource bundle: 45:16
Developing @Age annotation: 55:50
Writing a validation constraint class: 01:03:27
Implementing the logic: 01:11:24
Let's Debug: 01:30:35
An important scinario : 01:36:14
Configuring properties file with our app(Analysis) 01:39:07
Adding a properties file : 01:45:35
Implementing the MessageSource bean/ResourceBundleMessageSource : 01:48:19
Implementing LocalValidatorFactoryBean :02:01:47
Wrapping up with assignment: 02:08:35
In the next video, we will learn a different approach to create form validators. We can either use JSR 303/380 or SpringValidator interface to create a custom validator.
--------------
Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to seleniumexpress@gmail.com
you can ping me on my Facebook page
https://www.facebook.com/seleniumexpress
Make sure to join my private Facebook page
“SeleniumExpress - Support"
https://www.facebook.com/groups/187000222361579/
you can ask for support in my website forum
https://www.seleniumexpress.com
Subscribe to my youtube channel
https://www.youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?sub_confirmation=1
Follow me on Insta
https://www.instagram.com/selenium_express/
Music :
-----------
credits : -
(intro)
Adventures by A Himitsu https://soundcloud.com/a-himitsu
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
http://creativecommons.org/licenses/b...
Music released by Argofox https://youtu.be/8BXNwnxaVQE
Music provided by Audio Library https://youtu.be/MkNeIUgNPQ8
intro template :
www.youtube.com/Alexbau01
Видео Develop Custom Validators for Spring Web-app | A step by step guide to Hibernate Validator[Advanced] канала Selenium Express
We must aware of these concepts as there is no real-world application exists which doesn't use custom validators.
There are different ways to build custom validators. Today we will develop custom validators using the JSR 303/ 349/ 380. We will use the hibernate validators / Java bean validation API as the dependency.
Our goal is here to create some annotations like @Size, @NotNull, @NotBlank. In this video, we will create an annotation called @Age to validate the age field of our project.
Below are the contents we will be covering in this tutorial.
Video Map:
⏱️TIMESTAMPS⏱️
Introduction 00:00
Bean Validation API [remaining] : 06:09
Create Custom Annotation[Theory] : 15:05
Java Retention Policy : 21:10
Custom Validation constraint[Theory] : 29:27
The 20 Minutes Challenge: 32:56
Looking into Hibernate Validator source code
@Size/ @NotBlank Source code Analysis: 34:53
Understanding the Resource bundle: 45:16
Developing @Age annotation: 55:50
Writing a validation constraint class: 01:03:27
Implementing the logic: 01:11:24
Let's Debug: 01:30:35
An important scinario : 01:36:14
Configuring properties file with our app(Analysis) 01:39:07
Adding a properties file : 01:45:35
Implementing the MessageSource bean/ResourceBundleMessageSource : 01:48:19
Implementing LocalValidatorFactoryBean :02:01:47
Wrapping up with assignment: 02:08:35
In the next video, we will learn a different approach to create form validators. We can either use JSR 303/380 or SpringValidator interface to create a custom validator.
--------------
Any time you are getting stuck with issues, Feel free to ask for support.
You can send mail to seleniumexpress@gmail.com
you can ping me on my Facebook page
https://www.facebook.com/seleniumexpress
Make sure to join my private Facebook page
“SeleniumExpress - Support"
https://www.facebook.com/groups/187000222361579/
you can ask for support in my website forum
https://www.seleniumexpress.com
Subscribe to my youtube channel
https://www.youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?sub_confirmation=1
Follow me on Insta
https://www.instagram.com/selenium_express/
Music :
-----------
credits : -
(intro)
Adventures by A Himitsu https://soundcloud.com/a-himitsu
Creative Commons — Attribution 3.0 Unported— CC BY 3.0
http://creativecommons.org/licenses/b...
Music released by Argofox https://youtu.be/8BXNwnxaVQE
Music provided by Audio Library https://youtu.be/MkNeIUgNPQ8
intro template :
www.youtube.com/Alexbau01
Видео Develop Custom Validators for Spring Web-app | A step by step guide to Hibernate Validator[Advanced] канала Selenium Express
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Client-side vs Server-side validation | Spring MVC Form Validation | Hibernate Validator | JSR 380](https://i.ytimg.com/vi/ot-TI5T7-5M/default.jpg)
![How HashMap works internally || Popular java interview question on collection (HashMap)](https://i.ytimg.com/vi/CojCE-ojdGY/default.jpg)
![Send Emails to your App users ||Spring MVC || Design the Service Layer with 7 best coding practices.](https://i.ytimg.com/vi/laZnez5VzV4/default.jpg)
![Why we need constructor inside an abstract class ? || Popular Java interview question](https://i.ytimg.com/vi/jmxOsCGV120/default.jpg)
![WHEN we should not transfer data through URL || @PathVariable || Let’s set up the Email Form](https://i.ytimg.com/vi/xhKP9o9I85g/default.jpg)
![How exactly the Sessions and Cookies work? || Session Management || Spring MVC || @SessionAttributes](https://i.ytimg.com/vi/cpFfzE9eGT0/default.jpg)
![Decoding Spring Bean scopes | Hands-On | Spring interview questions and answers for experienced](https://i.ytimg.com/vi/xpKbs8FHUi4/default.jpg)
![REAL-TIME: Spring Bean life cycle using @PostConstruct |@PreDestroy |init - method| destroy -method](https://i.ytimg.com/vi/hUYGGqoXEPc/default.jpg)
![@SessionAttributes - Unraveling the mystery | HttpSession Vs @SessionAttributes |ConversationalScope](https://i.ytimg.com/vi/ezty6XhOpF8/default.jpg)
![46. Custom Bean Validation Annotation in Spring](https://i.ytimg.com/vi/NP0w86efeUU/default.jpg)
![Object cloning in java || DIFFERENT ways to create an OBJECT || Part 4 || clone( )](https://i.ytimg.com/vi/CVQxs-zsUWg/default.jpg)
![2 REST API Validation || Custom Bean Validation Annotation in Micro-services || Green Learner](https://i.ytimg.com/vi/b1FIYx9jDdA/default.jpg)
![](https://i.ytimg.com/vi/mMcQnPz-NlU/default.jpg)
![HOW to handle PHONE/ CREDIT CARD user input? Spring MVC / BOOT Formatter | Explore with debugging.](https://i.ytimg.com/vi/q9hjjeJA7Yw/default.jpg)
![How substring method works internally ? | popular java interview questions | java.lang.string](https://i.ytimg.com/vi/fQl6s3XvhZY/default.jpg)
![Spring Boot - Testing basics](https://i.ytimg.com/vi/Ekr4jxOIf4c/default.jpg)
![Develop your first Spring Jdbc app | Configure JdbcTemplate in 2 simple steps | Spring CRUD - Insert](https://i.ytimg.com/vi/8IglnYEzVNM/default.jpg)
![Intro to Spring Boot: Model Validation](https://i.ytimg.com/vi/INLNoeCD-m8/default.jpg)
![When to use throws keyword in JAVA || Try Catch vs Throws || Exception handling in java](https://i.ytimg.com/vi/x4AVrN1KSuU/default.jpg)
![Spring JDBC Course Preview || Let’s talk database || Spring Framework](https://i.ytimg.com/vi/5j_vh1b9dV8/default.jpg)