Develop Custom Validators for Spring Web-app | A step by step guide to Hibernate Validator[Advanced]

Selenium Express
Selenium Express
36.1 هزار بار بازدید - 4 سال پیش - Let's learn to create ANNOTATIONS
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 [email protected]



you can ping me on my Facebook page

Facebook: seleniumexpress



Make sure to join my private Facebook page

“SeleniumExpress - Support"

Facebook: 187000222361579



you can ask for support in my website forum

https://www.seleniumexpress.com



Subscribe to my youtube channel

@seleniumexpress



Follow me on Insta

Instagram: selenium_express



Music :

-----------

credits : -

(intro)

Adventures by A Himitsu SoundCloud: a-himitsu

Creative Commons — Attribution 3.0 Unported— CC BY 3.0

http://creativecommons.org/licenses/b...

Music released by Argofox A Himitsu - Adventures [Royalty Free ...

Music provided by Audio Library Adventures – A Himitsu (No Copyright ...



intro template :

alexbau01
4 سال پیش در تاریخ 1399/03/03 منتشر شده است.
36,178 بـار بازدید شده
... بیشتر