Spring boot: Dynamically Initialized Beans | Value Annotation

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

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

  • @VivekMishra-ob8yf
    @VivekMishra-ob8yf 4 หลายเดือนก่อน +7

    I think second approach is not dynamic because you are kind of hard coding the order type value in your properties file, we want our application at runtime to determine what kind of order it is and then call the respective service, not just having a particular order type service in our IOC container.

  • @raviravi-gg5ck
    @raviravi-gg5ck 4 หลายเดือนก่อน +14

    Please dont stop this spring Boot series, upload videos regularly

  • @suhailahmad3340
    @suhailahmad3340 4 หลายเดือนก่อน +5

    sir can you please give some range of time in which or how much time still it will take to complete the springboot playlist
    thank you for taking time from ur busy schedule . i would have take some other channel from this onwards but i am in flow now as we can recall what u taught previously that is really helping a lot
    kindly give a time range when it is get complete please sir !!!!!!
    thank you for the videos

  • @sahulraj9536
    @sahulraj9536 4 หลายเดือนก่อน +3

    Hey shreyansh,can you give me an approximate month by which all the spring boot topics in your roadmap will be uploaded

  • @yaswanthtogarapu8458
    @yaswanthtogarapu8458 4 หลายเดือนก่อน +4

    Hi shrayansh, please don't stop this series... Waiting a lot...

    • @ConceptandCoding
      @ConceptandCoding  4 หลายเดือนก่อน +1

      i will work tomm on notes making. expect video only on weekends buddy. Sorry for that

  • @baburaomulaparthi4531
    @baburaomulaparthi4531 4 หลายเดือนก่อน +2

    Thanks for explaining
    Can u plz make vedio on spring boot @transactional annotation

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

      hey shrayansh, this is must pick pls plan it

  • @sarveshrawat1462
    @sarveshrawat1462 2 วันที่ผ่านมา

    Hi Shrayansh,
    Amazing series!!
    I have two doubts in this,
    1st approach - You are actually creating all types of orders in your controller, there can be 10 different types of order in future, and you would need to have beans(object) of each one of them in your controller, whether your request needs it or not. Not a scalable solution.
    2nd approach - Taking from application.properties would mean that it would stay offline or whatever is assigned during the whole application uptime. And we cannot change it per client request. Defeats the purpose of being dynamic, as we would need to restart the application if the next client wants a different order from the previous one.
    Will search for correct approach and share.

  • @BRIJKISHOREDUTTBCE
    @BRIJKISHOREDUTTBCE 4 หลายเดือนก่อน +3

    Bahut BAAP padhate ho Shrayansh.

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

    nice

  • @AbhishekSingh-nd4qh
    @AbhishekSingh-nd4qh หลายเดือนก่อน

    Hiii shrayansh , I don't have mastercard kindly make changes so that membership can be taken by UPI payment also

  • @This.Object
    @This.Object หลายเดือนก่อน

    Okay in solution 2, now every time you change the app.props you need to recompile and deploy it, unless you externalise it. Even if you externalise, whenever you toggle the value you need to restart the application. Doesn't make sense to me why we do that🤷

  • @saurabhkashyap6625
    @saurabhkashyap6625 4 หลายเดือนก่อน +2

    Thank you bhaiya. Very helpful🎉

  • @SandeepAS-ov3fk
    @SandeepAS-ov3fk 2 หลายเดือนก่อน

    but we can do dynamic loeading with factory design pattern also right? depending on Query pram whether its "online" or "offline"?

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

    Recent interview question on this same topic and thanks for solving.

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

    The second approach i didn't saw dynamic initialization the value is already hard coded in properties file which will not change at run time. Could you please give example the bean of order should be created dynamically based user http request?

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

    Hi shrayansh, why we can't create object on after getting object. So, it will save some memory.

  • @NandeeshD-u4r
    @NandeeshD-u4r 2 หลายเดือนก่อน

    Sir can you share the roadmap document that you were followed in your first video in this playlist?

  • @in_tyler_we_trust
    @in_tyler_we_trust 4 หลายเดือนก่อน +1

    Sir please upload videos more frequently they are the best..
    Thanks

  • @lingaraj1231
    @lingaraj1231 4 หลายเดือนก่อน +2

    thank you for all the amazing videos you've been creating!

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

    What if I want to change in application properties at run time?

  • @Ankitkumar-kb7st
    @Ankitkumar-kb7st 4 หลายเดือนก่อน

    Can anyone please provide me a notes link?

  • @_respectOP
    @_respectOP 4 หลายเดือนก่อน +1

    Waiting for the next video ❤

  • @harshgarg0906
    @harshgarg0906 4 หลายเดือนก่อน +1

    Thank you Shrayansh for making the video on this

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

    Hi Shreyansh,can you please upload the video on how to dynamically load all classes during runtime in java 18.I have searched everything but didn't find any solutions for this.Thanks in advance.😊

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

    Can you make a video on schedular in spring boot to send 1000 of email and explain how to handle the exception while scheduling

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

    first of all , thanks for video and one request sir can u suggest one good project requirement ..apart form these usual projects like( library ,school management , insta clone youtube clone ) I mean what do you see in a project in resume to say that it is a good one . Please reply !

  • @abhijeetbasfore6816
    @abhijeetbasfore6816 4 หลายเดือนก่อน +1

    Informative.

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

    In the 2nd approach, would it not take the application to restart once properties have been changed? Would that be a disadvantage of this approach? We can't determine the type of order during the request. 1st one does.

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

    Make videos for cloud computing as well

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

    This can be resolved by strategy design pattern also.

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

    Sir when you are going to upload next video

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

    Why you stopped the series continue it please

    • @ConceptandCoding
      @ConceptandCoding  4 หลายเดือนก่อน +1

      not stopped, more videos will come

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

    Please make videos on spring security as well

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

    Sir, when are you going to upload your next video?

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

    Hi Shreyansh , can you please fixed timeline when the whole playlist will be finished

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

    What if you have 5 different implementation of Order class.

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

      In the order interface keep a function call returnOrderType. And in each implementation keep a class variable orderType and set value of orderType like ONLINE or OFFLINE. The returnOrderType method would return this class variable. Now in the caller class declare a Map and use @Autowired on List. Then in a @PostConstruct method fill up the Map with orderType (String) and its corresponding class (Order) by iterating the List which has all the implementation of Order interface. When you get the order type value from user, use it as key to fetch corresponding order implementation class from the map.

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

    Very good series. Please upload videos in regular intervals.

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

    waiting and waiting a lot sir..... for more videos of this series

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

      this weekend i will work on spring boot only

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

    I'm going to watch this soon

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

    Hi shreyansh ,it would be great if you can make a video on Spring Integration for parallel api calls

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

      noted

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

      ​@@ConceptandCoding This complete spring boot series is free on TH-cam?

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

    I am very thankful to you, I really need this

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

    sir pls cupload in udemy business sir, also some videos in lld,hld,java are missing in udemy business pls help sir

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

      hi buddy for uploading to business i need 30+ reviews currently there are not much reviews on spring boot course

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

      Java videos in TH-cam and udemy are same right. All topics videos are there in udemy also right or any videos missing?

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

      @@venkatakalyan4953 same

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

      @@ConceptandCoding have you provided notes /slides on udemy for java and lld cources.Please reply.

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

      Please reply