Spring Boot - @Autowired, @Qualifier, @Primary, @Required | Simple Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2018
  • Welcome to Simple Programming
    We are going to cover on the most important topics in spring, and its the most sought topic in interviews that often confuses the candidates.
    Autowire on Properties / Autowire by name
    Autowire on Setters / Autowire by type
    Autowire on Constructors
    along with the above we will also look at,
    @Qualifier, @Primary, and @Required

ความคิดเห็น • 90

  • @minor12828
    @minor12828 หลายเดือนก่อน

    Sir you are dropping thousand dollars knowledge on this video. Very very very helpful. Thank you very much.🤝

  • @jasper5016
    @jasper5016 2 ปีที่แล้ว +1

    It cannot be simpler than that. Thanks a lot. Rooting for your upcoming videos.

  • @omkarmarbhal
    @omkarmarbhal 4 ปีที่แล้ว +6

    Very Simple and good explanation with a practical approach. Thank You Sir.

  • @prajyotlawande193
    @prajyotlawande193 3 ปีที่แล้ว +1

    I mean I've known all this for years but this video hit differently 👍🏼

  • @samimahmed3822
    @samimahmed3822 4 ปีที่แล้ว +8

    Very important points learned even after working for 1.5 years. Thank You.

  • @mohamedtaboubi
    @mohamedtaboubi 5 ปีที่แล้ว +2

    Very good explained, thx

  • @maruthidanda2364
    @maruthidanda2364 2 ปีที่แล้ว

    Very easy to understand with ur words sir.thank you so much and I hope will continue with this way

  • @RanjitKumar-kb7zt
    @RanjitKumar-kb7zt 2 ปีที่แล้ว

    I'm glad that I found this channel :)

  • @kathiravanbalakrishnan3149
    @kathiravanbalakrishnan3149 4 ปีที่แล้ว

    Thank you for your awesome explanation sir.

  • @sreddy8141
    @sreddy8141 2 ปีที่แล้ว +1

    Thanks a ton, so cleared a lot of confusions ,keep going sir.

  • @ABTEJA
    @ABTEJA 5 ปีที่แล้ว +1

    Crisp and clear explanation bro..

  • @akki7949
    @akki7949 2 ปีที่แล้ว

    Hats off.. so many important concept in simple way

  • @dynamicdeveloper6658
    @dynamicdeveloper6658 2 ปีที่แล้ว +1

    Sir your explanation skills are great.
    Keep uploading such knowledgeable contents.

  • @PathikDave
    @PathikDave ปีที่แล้ว

    the most simplest with practical explanation and we understood the concept. Thanks you.

  • @venkateshbabua1453
    @venkateshbabua1453 3 ปีที่แล้ว

    Great explanation keep continue your great work

  • @satheeshguru6080
    @satheeshguru6080 2 ปีที่แล้ว

    Clear explanation. Thanks much 🙏

  • @joelchabzola8870
    @joelchabzola8870 ปีที่แล้ว

    Thanks for sharing your knowledge. You saved my work.

  • @dhirajchand3659
    @dhirajchand3659 2 ปีที่แล้ว

    OMG.. Thank you so much for this video..

  • @AmeyChittar
    @AmeyChittar 11 หลายเดือนก่อน

    Best and simplest example for primary and qualifier.. subscribed. Thank you. Will be waiting for more videos😊

  • @jonsnow9246
    @jonsnow9246 5 ปีที่แล้ว

    Thank you! Good explanation

  • @sachinkumarsingh538
    @sachinkumarsingh538 2 ปีที่แล้ว

    Thank you. You made my day, you have cleared my doubts

  • @divinity5250
    @divinity5250 ปีที่แล้ว

    This video easily explains the very tiny difference between use of @Autowire in constructor injection and setter injection.

  • @ashisswarn2781
    @ashisswarn2781 ปีที่แล้ว

    Well explained.!! appreciated!!!

  • @prithvisinh
    @prithvisinh 5 ปีที่แล้ว

    Very good explanation.

  • @satria78ful
    @satria78ful ปีที่แล้ว

    Thank you sir, nice video. Your explanation helped me to understand it.

  • @cloud_Engineer
    @cloud_Engineer 2 ปีที่แล้ว

    Absolute gold ...!!!!

  • @surya5064
    @surya5064 3 ปีที่แล้ว

    wow what a great explanation...!!

  • @ranjan098
    @ranjan098 2 ปีที่แล้ว

    Super explanation !!! thank you !!!

  • @atlantagroup3382
    @atlantagroup3382 3 ปีที่แล้ว

    great explaination!

  • @akshayteli5613
    @akshayteli5613 3 ปีที่แล้ว

    Thanks for making the video. Good explanation. When do we use required=false as it will always take us to nullpointerexception?.

  • @rahulraj-hu5xr
    @rahulraj-hu5xr 2 ปีที่แล้ว

    Excellent explanation!!!!

  • @balakrishnab9256
    @balakrishnab9256 2 ปีที่แล้ว

    very nice explanation. Thank you

  • @srikanthjanapati4247
    @srikanthjanapati4247 4 ปีที่แล้ว

    Great explation

  • @petervalencic5485
    @petervalencic5485 4 ปีที่แล้ว

    Thank you!

  • @sparrownature9189
    @sparrownature9189 4 ปีที่แล้ว

    Very good explaination

  • @89dillip
    @89dillip 3 ปีที่แล้ว +1

    good depth explanation

  • @aurojitbasak3249
    @aurojitbasak3249 2 ปีที่แล้ว

    Great explanation.... Liked it.

  • @krishnasuripaka2480
    @krishnasuripaka2480 4 ปีที่แล้ว

    Super Explanation

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 2 ปีที่แล้ว

    Great info 👍

  • @emilefeltesse
    @emilefeltesse 3 ปีที่แล้ว

    What are the spring boot params to use before this (group/artifact/...)?

  • @Rash1987nus
    @Rash1987nus 4 ปีที่แล้ว

    highly appreciable.... explained various scenarios of autowiring in simple manner

    • @vickyanand5898
      @vickyanand5898 3 ปีที่แล้ว

      what do you mean by autowiring here ?

    • @multicellular2
      @multicellular2 ปีที่แล้ว

      @@vickyanand5898 he very clearly means auto wiring the beans for DI. Ok?

  • @kirankumar-vz6jj
    @kirankumar-vz6jj 3 ปีที่แล้ว

    Thanks so much ...Time saved

  • @GoogleUser-id4sj
    @GoogleUser-id4sj 3 ปีที่แล้ว

    Good video!

  • @ajaysrinivasan2759
    @ajaysrinivasan2759 2 ปีที่แล้ว

    Fully understood Thankyou sire

  • @anandbharadwaj
    @anandbharadwaj 3 ปีที่แล้ว

    We also have to put @Qualtifier ("value") in component class so right ,where as in case if multiple implementations.

  • @fairozahmed6888
    @fairozahmed6888 5 ปีที่แล้ว

    Awesome

  • @Anushaaa_
    @Anushaaa_ 2 ปีที่แล้ว

    Very good explanation...

  • @prithvik8448
    @prithvik8448 ปีที่แล้ว

    Great demo

  • @furkankamaci6180
    @furkankamaci6180 8 หลายเดือนก่อน

    Great explanation

  • @SurajSingh-fn2ib
    @SurajSingh-fn2ib 4 ปีที่แล้ว

    Thank you

  • @dfytq
    @dfytq ปีที่แล้ว

    is it possible to make the qualifier("dog") value dynamic? So that I can set the dog/cat based on user input?

  • @ahmetdemir8036
    @ahmetdemir8036 2 ปีที่แล้ว

    thank youuuuuu

  • @divyeshprajapati8562
    @divyeshprajapati8562 3 ปีที่แล้ว

    Simple explanation 🙃, as name suggests:)

  • @karthiky898989
    @karthiky898989 4 ปีที่แล้ว

    Super topic. One suggestion is please change the title to Spring Core so that youtube can catch it easily. I assume this is the #primary topic #qualified in commonly #required Spring core terminologies.

  • @shaleenmadlapure1405
    @shaleenmadlapure1405 3 ปีที่แล้ว

    excellent👍

  • @sureshdhulipudi600
    @sureshdhulipudi600 4 ปีที่แล้ว

    Super 😍😍😍

  • @vivekguptacs
    @vivekguptacs 4 ปีที่แล้ว

    Nice explanation.
    I want to add one thing here.
    Create Empty constructor. with Autowired Constructor with Animal Param ( having qualifier ("dog")
    then it will work.

    • @jonsnow9246
      @jonsnow9246 4 ปีที่แล้ว

      Why is that so? Can you please explain?

  • @PrabhunathYadav
    @PrabhunathYadav 3 ปีที่แล้ว

    Thanks

  • @mahaveersingh2984
    @mahaveersingh2984 3 ปีที่แล้ว

    super-duper explanation

  • @biswajitbaidya4650
    @biswajitbaidya4650 2 ปีที่แล้ว

    Nice content

  • @satyateja5719
    @satyateja5719 3 ปีที่แล้ว

    Gud explanation

  • @parisiprem6342
    @parisiprem6342 3 ปีที่แล้ว

    that's beautifully explained with a simple scenario ..... many thanks

    • @harlemjoey9419
      @harlemjoey9419 2 ปีที่แล้ว

      i dont mean to be off topic but does someone know of a trick to get back into an instagram account??
      I somehow forgot my password. I love any help you can offer me!

    • @jackbrian6210
      @jackbrian6210 2 ปีที่แล้ว

      @Harlem Joey Instablaster ;)

    • @harlemjoey9419
      @harlemjoey9419 2 ปีที่แล้ว

      @Jack Brian i really appreciate your reply. I got to the site through google and Im trying it out atm.
      Looks like it's gonna take quite some time so I will get back to you later when my account password hopefully is recovered.

    • @harlemjoey9419
      @harlemjoey9419 2 ปีที่แล้ว

      @Jack Brian It worked and I now got access to my account again. Im so happy!
      Thanks so much, you really help me out :D

    • @jackbrian6210
      @jackbrian6210 2 ปีที่แล้ว

      @Harlem Joey no problem xD

  • @urmilkapadia9427
    @urmilkapadia9427 2 ปีที่แล้ว

    What is by default type or scope for autowire? byName or bytype

  • @KazakovVsevolod
    @KazakovVsevolod 4 ปีที่แล้ว

    Is your code available in git repo ?

  • @momskitchen906
    @momskitchen906 3 ปีที่แล้ว

    Sir i m new to spring can u suggest from where i need to start

  • @karamjitsinghsehdev3451
    @karamjitsinghsehdev3451 3 ปีที่แล้ว

    Well explained

  • @dhivyakuppusamy6034
    @dhivyakuppusamy6034 2 ปีที่แล้ว

    what is the difference between constructor injection and setter injection with required=true

  • @roysayantansunny1
    @roysayantansunny1 5 ปีที่แล้ว

    super like

  • @ShekharGupta-de8jr
    @ShekharGupta-de8jr 4 หลายเดือนก่อน

    Thanks for addding good points and explanation. I have one doubt. If we use @Qualifer and give be bean ID. Doesn't it violate runtime polymorphism of our interface?

  • @prajapati-parmod
    @prajapati-parmod 6 หลายเดือนก่อน

    Hi,
    Based on the scenario I want to use both of them(dog and cat) in different methods.
    How we can achieve (@Qualifier and @Primary) only point Cat if I use.
    in Controller I have 2 endpoints
    @GetMapping("/cat") same for dog
    Should I declare 2 variables
    @Qaulifier("cat")
    @Autowired
    Animal cat
    Please suggest

  • @manikantaammula9279
    @manikantaammula9279 3 ปีที่แล้ว

    May we know the tutor name??

  • @vishalgaikwad873
    @vishalgaikwad873 4 ปีที่แล้ว

    Sir N & C explanation , with all the conditions, except your video no one explained each & every condition of @autowired, specially parameter of constructor and setter method...
    TYSM

  • @HattieAschan
    @HattieAschan 6 วันที่ผ่านมา

    Success! Your Bitcoin transfer has been effectively completed.

  • @Rahulverma-zt3sx
    @Rahulverma-zt3sx 3 ปีที่แล้ว

    I think you have stopped making videos. Please don't stop. I request all to subscribe to motivate him.

  • @Homelander007
    @Homelander007 3 ปีที่แล้ว

    Appreciate that you tried to explain this but you are missing the key points and the basics - what does each annotation do and their utility. but good effort overall.

  • @brahminiannamaneni2171
    @brahminiannamaneni2171 2 ปีที่แล้ว

    Instaed of autowring Animal why cant we autowired driectly ca service or dog service

    • @rahulbhagwat4010
      @rahulbhagwat4010 ปีที่แล้ว

      This is a good question which kept me wondering too
      Did you get the answer for this?

    • @rahulbhagwat4010
      @rahulbhagwat4010 ปีที่แล้ว

      This is a good question which kept me wondering too
      Did you get the answer for this?

  • @wewe-fx6un
    @wewe-fx6un 2 ปีที่แล้ว

    White ide hurts my eyes