Removing Complete XML for Spring Configuration | @Configuration | @ComponentScan | @Bean Annotation

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @shankarghimire4492
    @shankarghimire4492 3 ปีที่แล้ว +21

    Durgesh, you are really awesome! I am watching your videos from Canada and they are best videos I have ever found. Thank you so much for sharing your wonderful knowledge and skills with the world! God bless you! :) ☺☺☺

    • @Me-wr6xp
      @Me-wr6xp ปีที่แล้ว

      India kab aa rhe ho aap

  • @sadaf_r
    @sadaf_r ปีที่แล้ว +15

    I think this is the only channel for spring...well explained 🔥

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

      I totally agree, i tried learning it from so many places but I was able to understand only from this channel. Thank you Sir

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

    Thank you Sir, you are awesome. You have explained each and every concept thoroughly. I have implemented all concepts from starting video till this one and gonna continue further playlist. I have understood everything till now. This one is the best playlist to learn Spring Framework.
    Appreciate your hard work. Keep growing

  • @SaifulIslam-maahi
    @SaifulIslam-maahi ปีที่แล้ว +2

    You are great sir. Many many thank you sir for such awesome tutorials. this tutorial makes me confident about spring framework.

  • @sagarsrt6321
    @sagarsrt6321 3 ปีที่แล้ว +7

    I have been through the Spring framework playlist. It's really really helpful. 🙏

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

    The way you explaining the programs with new concepts that awesome sir. Thank you so much.

  • @akaram9085
    @akaram9085 16 ชั่วโมงที่ผ่านมา +1

    video bhejate rahiye sir spring core and spring mvc ke apko suscribing aur jyada bada denge

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

    really awesome teacher, lots of respect for your teaching style dear

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

    Bhai dil jeet liye yar...aaj complete ho gya mera Spring Core ka lecture. Zindagi me kisi ne itna achha se nhi smjhaya tha isiliye main kabhi padh nhi paya tha samajh nhi paya tha Java Advance. Lekin Apki explanation aur practicals ne 100% clear kar diya concepts! Thanks a lot

  • @1331deepak
    @1331deepak 9 หลายเดือนก่อน

    Great explaination Durgesh sir hats off to you.

  • @rahul-java-dev
    @rahul-java-dev 4 ปีที่แล้ว +1

    Mjaa aata h aapse padhne me....Thank u, thank u so much Sir.

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

    Your content is really awesome and I really like the way you explain these concepts. I am following your whole playlist and it's helping me a lot. Thanks for creating such a wonderful content. I am really grateful :)

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

    Thank you for all the spring videos

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

    Best video explaining Annotation. Thanks a lot!

  • @letsexplore7806
    @letsexplore7806 4 ปีที่แล้ว +2

    Thanks for sharing your knowledge !

  • @sunnysharma5635
    @sunnysharma5635 2 หลายเดือนก่อน +1

    In first video u said we don't want to create objects by ourselves spring will create but now u create objects in bean annotations

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

    bahut accha laga yeh tutorial...keep up Durgesh bhaiya

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

    Thanks a lot....🎉🎉🎉🎉🎉🎉 Bro you saved me from dipression

  • @Vijay-jv3kv
    @Vijay-jv3kv 3 ปีที่แล้ว +1

    You are great durgesh

  • @AjayGupta-ob8oe
    @AjayGupta-ob8oe 4 ปีที่แล้ว

    I subscribed to many channel for learning the spring but you are the best. I hope that you will be safe.

    • @AjayGupta-ob8oe
      @AjayGupta-ob8oe 4 ปีที่แล้ว

      Plz make some video of AOP and spring security.

  • @rahulranjan5067
    @rahulranjan5067 4 ปีที่แล้ว +1

    Great explanation.

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

    I like your way of teaching , i watch your all videos . please make a video on how to handle exception spring exception .

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

    Great Job JAI HIND JAI BHARAT

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

    Nice video. This video helpful for me.

  • @himanshumittal7880
    @himanshumittal7880 2 ปีที่แล้ว +10

    Thanks for the videos, really helpful. Have quick question - The whole reason we were fetching info through XML was that we don't have to compile the code if there is any change in values, but now that we are putting the config in Java class config and variables value inside Java class (through annotation), won't we have to compile the code again in case of any change in values. So, why should do this and not just instantiate methods directly?

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

      I have also the same question. Did you get the answer for this?

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

      Adding configuration via annotations is the best practice because if something goes wrong you will not be able to rectify until runtime(i.e after deployment) when we use IDEs like eclipse compilation issues are highlighted during coding..

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

    Thankyou soo much!!!!!!!!!!!!! Really so helpfully Thankyou so much

  • @AmanKumar-wu3ej
    @AmanKumar-wu3ej 11 หลายเดือนก่อน

    Thanku sir for this playlist

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

    Great explanation Sir....

  • @priyankayadav-fx5ks
    @priyankayadav-fx5ks 3 ปีที่แล้ว +1

    Woww woww....❤️❤️ Pta nhi kyu itne din baad ye video mili...

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

      me too good luck

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

    Thank you sir for such deep concepts you shared.

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

    Informative.

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

    Thanks and i really appreatiate you

  • @167shivamrai2
    @167shivamrai2 2 ปีที่แล้ว

    Bhai jai ho aapki....what a way of teaching.

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

    Sir you are awesome ❤️❤️

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

    Thank u so much sir....Sir please make video on spring web and Angular

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

    Thank You sir ji 🙏

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

    Doing great work ,you saved me

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

    i think we can create multiple beans in @configuration class for the same object like Student
    with different initializations either by setter or constructor. I mean initializations not injection.

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

    Good going appreciate

  • @mukeshkumar-sc7bk
    @mukeshkumar-sc7bk 4 ปีที่แล้ว +2

    Thank you sir

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

    fantastic

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

    thank you, brother..................

  • @ayushjain7555
    @ayushjain7555 2 ปีที่แล้ว +9

    Sir I have one doubt that basically we are using spring in order to avoid Student sb=new Student();
    But again in JavaConfig file we creating Student object in this manner only. Then it contradicting its use of IOC.

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

      basically, you are telling spring to manage your object, add other behaviour like logging, transaction, security etc automatically, manage life cycle

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

      I think difference is in this way spring IOC container manages life cycle of object and in other case if we simply make object by our own in main() function then it does not manages life cycle, correct me if I am wrong or you get any more explanation.

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

      @@ash7130 I think difference is in this way spring IOC container manages life cycle of object and in other case if we simply make object by our own in main() function then it does not manages life cycle, correct me if I am wrong or you get any more explanation.

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

      @@learnwithme7750 yeah, you are almost correct. Please note that, all this is done to make app developement easy. We can do all this our self as well, but it will too big a task to write simple microservices.
      In production world this is very important.

  • @amitthakur-yo6xw
    @amitthakur-yo6xw 2 ปีที่แล้ว

    You are excellent

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

    Good video sir.

  • @gouravdashore1449
    @gouravdashore1449 4 ปีที่แล้ว +3

    Thankyou 😘😘

  • @meenalkhot83
    @meenalkhot83 29 วันที่ผ่านมา

    Good

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

    Thank you so much sir ❤

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

    I love using xml configuration instead of using annotation though!

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

    sir spring ka ek full project banao jis main sare annotation use kiye ho

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

    Hi sir, exception occurs in this prg please solved - cannot load configuration class

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

    🙏🙏 Thank you sir..

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

    Thank you sir🙏🙏🙏

  • @Vijay-jv3kv
    @Vijay-jv3kv 3 ปีที่แล้ว +1

    I am following to u

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

    please also tell pros & cons of using java based config

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

    Hi, I am from Bangladesh. I started watching your spring tutorial through the playlist.
    I have good knowledge of core java. Could you suggest to me which playlist should I watch after this playlist?

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

      You should watch Spring JDBC then Spring ORM then Spring MVC and last Spring Boot....😊

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

    Hi sir,
    I have a doubt that earlier when we are not giving the @Component I'd that is "firstStudent" then also we are able to get the object from the ioc container and print it ,but when we are removing the @Component annotation and configuring the Bean inside the javaConfig file, we are giving the method name as the I'd then what if we do not give that method name?

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

    oh man it took 2 hours me to identify the problem of using "" . I wrote: =ApplicationContext context=new AnnotationConfigApplicationContext("Config.class"); right is without " " right:ApplicationContext context=new AnnotationConfigApplicationContext(Config.class);

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

    Nice videos

  • @kvnagendra5354
    @kvnagendra5354 4 ปีที่แล้ว +3

    Bro subscriber's count show to viewers so that we'll know ur growing

  • @DIKSHAGHOSH-v4o
    @DIKSHAGHOSH-v4o ปีที่แล้ว +1

    Hi Sir, if we have two or more object ref dependencies. How can we configure by bean annotation?

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

    Sir values kaise insert krenge, ye to btao

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

    you are best

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

    How we can insert through get and setter method using Java config file?

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

    I have one doubt, suppose I want to access this(student) bean in some other class(except main function class) so can we do it or we have to manually declare it?

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

    Does this java-config way make the program more tightly coupled?
    Which is better to use XML, Annotations, or java-config? and why?

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

    Awesome 💞

  • @sachinKumar-hu9gj
    @sachinKumar-hu9gj 4 ปีที่แล้ว

    Nice video sir 😁😁

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

    without xml how can we implement standalone collections?

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

    For anyone wondering about the shortcut to reformate the code :
    "Ctrl + Shift + f "

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

    Thanks .

  • @GautamKumar-yv7li
    @GautamKumar-yv7li 4 ปีที่แล้ว +1

    How we connect spring with database or mysql sir, thanks for this video.

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

    sir ko samosa boht pasand h

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

    javaconfig file bnane ka fayda kya hua? java file baar baar compile krni pdegi when any change. lekin ab bas ek file (javaconfig) file recompile krni pdegi --> is this the change?the advantage? is my understanding correct?

  • @31sar
    @31sar 3 ปีที่แล้ว

    What do we use in real time projects?? Please reply

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

    Sir how to added spring doc in eclipse?
    my eclipse not showing details

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

    if we use @Bean again it is tightly couple right?

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

    Why u decided to choose java configuration bcz when we have already multiple approach to declare as bean in a xml or annotations tell me real time uses case when we choose this approach in a project

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

    17:53 yaha pe 1) 2)@component 3) @Bean se bean ko configure karte hai isme 1st kya bol rahe hai sir can anyone tell me 😅

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

    How to resolve cvc-complex- type.2.4.c ????

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

    I want to learn web developement using spring boot please send some link

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

    Ye samosa INOX wala he kya ?

  • @GauravRawat-fu2py
    @GauravRawat-fu2py 3 ปีที่แล้ว

    Sir agar humae ise mae collection use kar na hoga to, us case mae humae . XML file use kar ni hogyi kya.

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

    i will stick with xml config file.

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

    Sir jaise XML mein hum property mein varaiable ka value pass karte the @Configuration se hum variable ka value kaise pass karenge ?

  • @GautamKumar-yv7li
    @GautamKumar-yv7li 4 ปีที่แล้ว

    Sir android ka series bnao please

  • @yashgupta-dw7sn
    @yashgupta-dw7sn 3 ปีที่แล้ว

    best

  • @pixo-pixel
    @pixo-pixel 4 ปีที่แล้ว +1

    Why to create bean of samosa class instead can't we do new Samosa inside constructor directly?

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv 4 ปีที่แล้ว +1

    Spring Aop pr video kab aayga sir please reply

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

      bhai kyu itt paresan ho.. youtube pr search karo video dekh lo AOP pr .. video bana rhe, layenge video.. kaafi time lagta video record karne pr fir edit karne pr.. and upload pr ..to late to hoga hi ..sorry for that.

    • @DeepakGupta-hj2dv
      @DeepakGupta-hj2dv 4 ปีที่แล้ว +4

      @@LearnCodeWithDurgesh baki kisi ke smj nii aate sir....

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

      @@LearnCodeWithDurgesh no no sir aram s sra module cover karo spring k spring core is awesome bro

  • @vivekkumar-iy7zk
    @vivekkumar-iy7zk 4 ปีที่แล้ว

    Sir,I am not able to use basePackages .Do i need to use any jar file for this

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

    jai hind jai bharat

  • @SurajPandey-vi9gr
    @SurajPandey-vi9gr 5 หลายเดือนก่อน

    Acc to me, this method is much complex.

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

    why we are returning object @Bean Annotation already given object.can u pls explain

  • @kishanmishra7383
    @kishanmishra7383 3 ปีที่แล้ว +2

    Suppose we are using @Component and @Component Scan annotations and replaced the XML file with Java Class. In that case, if any of our variables is a collection then how are we going to provide value to it? I mean we don't have XML to create a standalone collection and directly use its id in @Value.

  • @VISHALSINGH-ix1cu
    @VISHALSINGH-ix1cu 2 ปีที่แล้ว

    Bhai video ko thoda short karne ki koshish jyda hi depth jata hai.

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

    How can I achieve this using getter and setter

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

    "Exception in thread "main" java.lang.IllegalStateException: Cannot load configuration class" I faced this problem. can you please help me out?

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

    I think there is no need of JavaConfig class. Without it I am able to perform the operation.
    I am passing Student.class in AnnotationConfigApplicationContext.

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

    Why use this.samosa.display() in study(). 23:35

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

    Samosa bahuth pasand hai kya aap ko sir