Spring Core Annotation | Configuration, Bean

Поделиться
HTML-код
  • Опубликовано: 15 дек 2024
  • Spring Core Annotation | Configuration, Bean:- github.com/nav...
    Check out our courses:
    Spring Framework in 8 Full Day Course Live: go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Complete Java Developer Course Batch-3: go.telusko.com...
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : go.telusko.com...
    Coupon: TELUSKO20 (20% Discount)
    Udemy Courses:
    Spring: go.telusko.com...
    Java:- go.telusko.com...
    Java Spring:- go.telusko.com...
    Java For Programmers:- go.telusko.com...
    Python : go.telusko.com...
    Git : go.telusko.com...
    Docker : go.telusko.com...
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusk...
    Follow Navin Reddy on Instagram: / navinreddy20
    Subscribe to our other channel:
    Navin Reddy : / @navinreddy
    Telusko Hindi :
    / @teluskohindi

Комментарии • 86

  • @RodrigoNSouto
    @RodrigoNSouto 7 лет назад +24

    Truly clarifying, your "trial and error" method of teaching is the right way to teach this sort of stuff. You are awesome!!!

  • @berjaoui92
    @berjaoui92 6 лет назад +2

    Very clear. Thank god Telusko channel exists !!!
    Thumbs up !! :)

  • @zanfet
    @zanfet 8 лет назад +2

    I usually don't comment but this video was so helpful that i feel the need to. Thank you so much. Very clear!

  • @RezaJafari1984
    @RezaJafari1984 4 года назад +1

    If I understand good , we can't achieve loose coupling with annotation base configuration BUT with xml we can.

  • @bigbeast007
    @bigbeast007 Год назад

    Can we access a bean from within a Service class instead of the main class(i.e. App in this case)?

  • @user-rp9iis1en6h
    @user-rp9iis1en6h 4 года назад +2

    Hi @telusko, What is the spring context that you have added?
    Is it different for spring-boot?

  • @mikhail1566
    @mikhail1566 6 лет назад +1

    The best explanation ! Thanks a lot

  • @kinshukau
    @kinshukau 5 лет назад +1

    Thanks a lot for the explanation. It was very helpful.

  • @ravitejadesai
    @ravitejadesai 5 лет назад

    Why did you give cpu type as Mobileprocessor? And why did you return snapDroagon object for Mobleprocessor Bean in Appconfig Class?

  • @jasnanajeem5015
    @jasnanajeem5015 2 года назад

    If each of these beans have constructor that do a sysout, then microprocessor class's constructor will get invoked first right ????

  • @meharajfareedy6031
    @meharajfareedy6031 6 лет назад

    You explained very nicely. Thank u sir

  • @trynew7759
    @trynew7759 7 лет назад

    Mindblowing Explaination...

  • @anjaliwani1799
    @anjaliwani1799 6 лет назад

    What are the annotations used for java based configuration??

  • @madhulikam8631
    @madhulikam8631 3 года назад

    How to resolve bean creation exception

  • @moonshine4757
    @moonshine4757 3 года назад +1

    Hey, I did exactly like this but I'm getting 'cannot land configuration class: package name' Why is configuration class isn't loading??

    • @Krishna-ff3yi
      @Krishna-ff3yi 3 года назад

      same problem did you find solution

    • @moonshine4757
      @moonshine4757 3 года назад

      @@Krishna-ff3yi nope

    • @Krishna-ff3yi
      @Krishna-ff3yi 3 года назад

      @@moonshine4757 I got it how to solve that

    • @moonshine4757
      @moonshine4757 3 года назад

      @@Krishna-ff3yi Can you tell me?

    • @Krishna-ff3yi
      @Krishna-ff3yi 3 года назад

      @@moonshine4757 I put an link you want to do that

  • @Raj-do7zs
    @Raj-do7zs 5 лет назад

    why are you creating getter and setter .. ? i did't get that

  • @rajyamramasahayam7748
    @rajyamramasahayam7748 7 лет назад +3

    Hello Sir, Your videos are very informative., Thank you for that, But, Could you please upload the videos in order by date or by giving number to the videos..Because I am watching each and every video of yours. So that it is clear for us to watch without missing any content.

  • @Skamch
    @Skamch 5 лет назад

    Thank you
    I'm form Belarus and you lesson the best

  • @manjusha9630
    @manjusha9630 6 лет назад +2

    while creating bean in xml we can inject the properties to the bean with , how can we do that with @Bean annotation

    • @bharatvarma9278
      @bharatvarma9278 4 года назад

      have you found out how to do that? couldn’t find any resources which shows how to set property values using beans in configuration class

    • @logarathinam1782
      @logarathinam1782 4 года назад

      @@bharatvarma9278 @bean(name=" ")

    • @nitishprajapati9787
      @nitishprajapati9787 4 года назад +1

      @@logarathinam1782 thanks!

  • @shashgo
    @shashgo 7 лет назад

    Navin, I did exactly what you did, the only difference is the package name, but it is consistent amongst all the three files. And I did the last thing you did also, that is putting the @Bean annotation, but Im still getting the
    "No qualifying bean of type [com.spring.SpringAnno.Samsung] is defined"

  • @pmtk2055
    @pmtk2055 2 года назад

    Why not use @Component over the Samsung class?

  • @TheAbhishek2828
    @TheAbhishek2828 6 лет назад

    thanks bro..!! you explained very clearly

  • @nareshsreerama7792
    @nareshsreerama7792 7 лет назад

    Good explanation... thanks sir

  • @pankhustar
    @pankhustar 6 лет назад +14

    This is not annotation based configuration, its called java based configuration. In annotations based you dont need to create AppConfig.java class

    • @insane2539
      @insane2539 3 года назад +1

      is it annotation based based if we mention @ComponentScan(basePackages={"com...}) below @Configuration and write @Component for those classes which we need a bean of?

  • @lakshmism3544
    @lakshmism3544 8 лет назад

    thanks Navin for sharing the knowledge.can you please explain on details about the following: ApplicationContext context = new FileSystemXmlApplicationContext();ApplicationContext context = new ClassPathXmlApplicationContext();and what is the difference between them. How can we know which situation to use them.

    • @vakho30
      @vakho30 8 лет назад +1

      ClassPathXmlApplicationContext reads files from your application's classpath and FileSystemXmlApplicationContext reads from your system (for instance, "C\asdf\***").

  • @shivisinghal1122
    @shivisinghal1122 7 лет назад

    Sir yr videos are very easy for understanding.can u plz provide videos on angular

  • @anushbabu5023
    @anushbabu5023 7 лет назад

    Thanks Sir nice explanation

  • @devegus79
    @devegus79 3 года назад

    Thank you.

  • @prabhashprabhat2550
    @prabhashprabhat2550 6 лет назад

    Please share link for immediate next video tutorial....

  • @shivisinghal1122
    @shivisinghal1122 6 лет назад +1

    Please provide video on angular 4

  • @somnathroy8803
    @somnathroy8803 6 лет назад

    without maven can it possible to show spring mvc

  • @KrishnaDhakate
    @KrishnaDhakate 6 лет назад

    Without getter/setter we can run the mobile processor. Then whats the reason for g/s?

  • @DoubtedBuddy
    @DoubtedBuddy 4 года назад

    but still it is not fully annotation based component as you have mentioned component annotation in xml file through which you can provide object to class car but in tyre case it is fully annotation based as it is not getting object through xml file can you avoid xml file in case of giving object to car class.........

  • @sagarchindam8846
    @sagarchindam8846 6 лет назад

    Do we still need getter and setter for mobileprocessor wen we are using @Autowired annotation.?

    • @ramsikarwar7
      @ramsikarwar7 6 лет назад

      no

    • @skumarv12
      @skumarv12 6 лет назад

      No.. Since MobileProcessor is Autowired, you do not need getter/setter

  • @tomaspyth7017
    @tomaspyth7017 7 лет назад

    I would appreciate it if you could maintain the upload date in the video description so that we know wether the tutorial still (!)actual.
    Nevertheless great video, you got a thumbs up and an abo from me... sorry for my English

  • @peedrap987654321
    @peedrap987654321 5 лет назад

    if the MobileProcessor contain another @Autowired reference and it contain another @Autowired reference than how it will create the object ?

    • @AmlanMohantyOfficial
      @AmlanMohantyOfficial 5 лет назад

      Simple thing is.. If you are writing @Autowired for any class, Make sure you must mention @Component on top of the same class while defining the class. I mean if you are autowiring Laptop class inside Phone class make sure you must mention @Component while defining Laptop class.

  • @NotSureOf
    @NotSureOf 6 лет назад +5

    This is the bit of confusion state of explanation. I think this could have gone with a different example...

  • @ashuzguitar
    @ashuzguitar 4 года назад

    Thanks a lot once again!

  • @prernak9699
    @prernak9699 6 лет назад

    Best Channel !!! Thanks

  • @ayami123
    @ayami123 4 года назад

    put your paypal in the description so we could donate :D

  • @hithere3379
    @hithere3379 2 года назад

    Wait i got confused fellas , we were easily getting object of samsung with new operator. So why do all this configuration to achieve the same objective? Please help genuinely

  • @AmlanMohantyOfficial
    @AmlanMohantyOfficial 5 лет назад

    @Telusko.. If we dont write @Configuration on top of AppConfig class and keep everything else exactly the same as you have mentioned over here.. Are we going to get any exception?

    • @sachinmahajan6173
      @sachinmahajan6173 5 лет назад

      I think this will not work as Bean is to be declared with Configuration.
      @Telusko please comment in case of any wrong understanding.

    • @AmlanMohantyOfficial
      @AmlanMohantyOfficial 5 лет назад

      @@sachinmahajan6173 Bro.. Are you saying @Bean will only work inside a class if on top of the class @Configuration is mentioned ?

  • @parwana1000
    @parwana1000 7 лет назад

    V nice

  • @priyasagar1332
    @priyasagar1332 4 года назад

    Video is not clear

  • @AbhishekKumar-yy3ui
    @AbhishekKumar-yy3ui 6 лет назад

    there was no need for s/g for mobile-processor.

    • @TrulyLordOfNothing
      @TrulyLordOfNothing 6 лет назад +1

      Yes, there the tutor goofed up. Great catch!

    • @skumarv12
      @skumarv12 6 лет назад

      In order to explain the importance of Autowiring, he added getter/setter I believe!

  • @sreeharimanoharan3203
    @sreeharimanoharan3203 6 лет назад

    Awsome

  • @online15education
    @online15education 4 года назад

    Very fast

  • @issacnewton4976
    @issacnewton4976 6 лет назад +1

    Appreciate your effort but a lecture should concentrate more on a good explanation on concepts , may be using a ppt and a little touch up on the technical aspects. It should be more organized without any debugging during the lecture as we consider you as a tutor or expert...

    • @fahadgaliwango4502
      @fahadgaliwango4502 6 лет назад +1

      we also need debugging skills, becouse a working code will never make u sweat

    • @ahmedsufiyan20
      @ahmedsufiyan20 6 лет назад +1

      Cut bullshit ... He's doing great

    • @nagendersripada7798
      @nagendersripada7798 2 года назад

      @@fahadgaliwango4502 correct

    • @ngndnd
      @ngndnd Год назад

      slides are boring af. I'd rather see actual code

  • @paulfrischknecht3999
    @paulfrischknecht3999 4 года назад

    the Eclipse IDE icons are so pretty... not

  • @gopiacs2184
    @gopiacs2184 Год назад

    This teaching is not clear.....
    I watched 3 times still I'm not clear
    U r not defining things properly

  • @mayankagarwal9786
    @mayankagarwal9786 6 лет назад +2

    Please use more real world examples rather than this Samsung and all, if I use this Samsung class example in interview then interviewer will not waste his time with me and will say ‘I am done’.

    • @pankhustar
      @pankhustar 6 лет назад +4

      He is here to explain the concept and not what you need to say in the interview room. If you know the concept you can create as many example as you want.

    • @mayankagarwal9786
      @mayankagarwal9786 5 лет назад

      @@pankhustar Concepts can be explained well using real world examples that wouldn't waste our time to create other examples to understand the concept well.

  • @4thIdiot
    @4thIdiot 6 лет назад +9

    Very confusing. Explanation was not clear.

    • @TrulyLordOfNothing
      @TrulyLordOfNothing 6 лет назад

      Explanation was clear. You need to know a bit about dependency injection before seeing this video. What exactly was confusing?