Custom Annotations and Validation in Spring Boot with Demo | Code Decode

Sdílet
Vložit
  • čas přidán 24. 10. 2023
  • In this video of code decode we have demonstrate spring boot validation using custom annotation with example
    Udemy Course of Code Decode on Microservice k8s AWS CICD link:
    openinapp.co/udemycourse
    Course Description Video :
    yt.openinapp.co/dmjvd
    previous 2 videos on this topic
    • Mapstruct in Spring bo...
    • Request Validation in ...
    Custom Annotation in Spring Boot:
    A custom annotation in Spring Boot is a user-defined Java annotation that you can apply to classes, methods, fields, or other program elements. These annotations serve as markers that convey additional information about the elements they annotate. In the context of validation, custom annotations are often used to define specific constraints and rules for validating data within your Spring Boot application.
    For example, you can create a custom annotation like @MyCustomValidation to signify that a field should adhere to certain rules defined by your application. Custom annotations are particularly useful for encapsulating domain-specific validation requirements and making your code more expressive and self-documenting.
    Custom Validation in Spring Boot:
    Custom validation in Spring Boot refers to the process of enforcing application-specific rules and constraints on data. It involves defining custom validation logic and associating it with custom annotations. This allows you to validate data based on your unique business requirements.
    Most Asked Core Java Interview Questions and Answers: • Core Java frequently a...
    Advance Java Interview Questions and Answers: • Advance Java Interview...
    Java 8 Interview Questions and Answers: • Java 8 Interview Quest...
    Hibernate Interview Questions and Answers:
    • Hibernate Interview Qu...
    Spring Boot Interview Questions and Answers:
    • Advance Java Interview...
    Angular Playlist: • Angular Course Introdu...
    SQL Playlist: • SQL Interview Question...
    GIT: • GIT
    Subscriber and Follow Code Decode
    Subscriber Code Decode: czcams.com/users/CodeDecode?...
    LinkedIn : / codedecodeyoutube
    Instagram: / codedecode25
    #codedecode #requestvalidation #globalexceptionhandling

Komentáře • 20

  • @sayanbiswas8847
    @sayanbiswas8847 Před 8 měsíci +2

    Very informative video team. Thanks

  • @ankushkamble911
    @ankushkamble911 Před 7 měsíci

    Hi Mam Thank you sharing such great content, just one question if we have to use same annotation for different tables(different repositories) then how we can Validate.

  • @Rajdweep
    @Rajdweep Před 8 měsíci +1

    hey, checked the udemy course, it looks awesome, but i only have some knowledge on spring boot hibernetes mysql n rest apis, all the other things like k8s docker all aws modules i dont know, should i take this course with 0 understanding of these technologies?

    • @CodeDecode
      @CodeDecode  Před 8 měsíci

      you can take the course as we have explained the k8s docker and aws part from basic

    • @Rajdweep
      @Rajdweep Před 8 měsíci

      @@CodeDecode okk i will take it then, i hope it will add some good weight in the cv of a 1yr old java dev

    • @GeekyCoder170
      @GeekyCoder170 Před 5 měsíci

      ​@CodeDecode where

    • @SuperMohit28
      @SuperMohit28 Před 4 měsíci

      @@CodeDecode I am also having similar kind Question. I am java guy ...I don't have any knowledge of Angular but want to learn Angular as well so if i will take this course .. So is this course recommended for me as well as i want to learn Angular as well along with other stuff mentioned?

  • @RishiRajxtrim
    @RishiRajxtrim Před 8 měsíci +1

    😎👍👍

  • @hemukumar6454
    @hemukumar6454 Před 8 měsíci +2

    First. Just to know, is your Microservice, kubernetes, AWS , CICD is complete,To enroll for the same.

    • @CodeDecode
      @CodeDecode  Před 8 měsíci

      Link for the course are given in the description

    • @hemukumar6454
      @hemukumar6454 Před 8 měsíci +1

      @@CodeDecode 😃 Thank you for the response. I've tried enrolling for the same. Unfortunately, unable to do so. Because the course isn't yet in Udemy business collections.
      Love your way of explanation. Definitely going to enroll.👍

    • @CodeDecode
      @CodeDecode  Před 7 měsíci

      It's there now👍

  • @peacemusic6082
    @peacemusic6082 Před 5 měsíci

    I'm getting NullPointerException when trying to verify email.....(Only when the email is unique (not present in DB))
    Working fine for the false case(when email is already present) getting proper response message
    Repository is returning null because email is not present

    • @jayadheep356
      @jayadheep356 Před 3 měsíci

      bro ima facing the same issue please update what is the solution for this....................😭

    • @hoanghuy.trannn
      @hoanghuy.trannn Před 2 měsíci

      @@jayadheep356 That is how JPA work. Just try catch method in responsitory. Or search in stackoverflow for solution.

  • @DeepakLalchandaniProfile
    @DeepakLalchandaniProfile Před 8 měsíci

    Create a udemy course for this

  • @deeplife9654
    @deeplife9654 Před 5 měsíci

    Didi why not share source code with us in Github ?😢