4 Spring Boot Mistakes to AVOID in 2024

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

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

  • @uhuebner
    @uhuebner 9 месяцев назад +47

    since Koushik seemed to have "forgotten" the chapter markers...
    0:53 Overusing Annotations
    3:38 Inefficient Management of Application Properties
    07:00 Inadequate Exception Handling
    10:37 Neglecting Logging Best Practices

  • @ratnadeepsaha7675
    @ratnadeepsaha7675 9 месяцев назад +76

    Spring boot helped me to switch from 3.8 lpa to 23 lpa job. I love this framework.

    • @ChadSigma111
      @ChadSigma111 9 месяцев назад +1

      Congrats man. Any resources apart from this channel for a developer with 2 YOE?

    • @machchar_qing
      @machchar_qing 9 месяцев назад

      same question 🤔

    • @SB-pp6in
      @SB-pp6in 9 месяцев назад +3

      Can u tell what did u learned and do?

    • @maddymadhu
      @maddymadhu 9 месяцев назад

      Can you elaborate the path you took

    • @CodingMakesMeHappy
      @CodingMakesMeHappy 9 месяцев назад

      Please tell us what you learned exactly and from where you learned. It would be helpful for all

  • @krasser650
    @krasser650 9 месяцев назад +14

    Complex things in simple words are priceless!

  • @rajkumarvb5197
    @rajkumarvb5197 9 месяцев назад +18

    Great piece of information for Junior Developers like me! Thanks Koushik.😊

    • @Java.Brains
      @Java.Brains  9 месяцев назад +1

      Glad you liked it

    • @AjayKumar-fd9mv
      @AjayKumar-fd9mv 9 месяцев назад

      Could you please explain how you achieved and your path,application to openings etc

  • @jopadjr
    @jopadjr 8 месяцев назад +1

    Hi Koushik, I recently came across an article highlighting Java vulnerabilities. In light of this, I believe it would be beneficial to create a playlist outlining the steps for: (1) Upgrading to the latest version of Java (2) Updating JAR files (3) Transitioning to the most recent dependencies. This playlist would serve as a valuable resource for us, subscribers, to proactively address potential security risks associated with outdated Java environments. Would you be available to create such a playlist? Thanks in advance.

  • @nitinmulay6832
    @nitinmulay6832 9 месяцев назад +4

    Thanks Kaushik .. since 8 years am following your useful contents for java 🙏

  • @someshvemula9966
    @someshvemula9966 9 месяцев назад +5

    Please correct me If I'm wrong.
    I feel like @Autowired is more readable and convenient compared to the constructor based dependency injection.

    • @hyperborean72
      @hyperborean72 9 месяцев назад +1

      It's simply because you do not understand what constructor injection is

    • @shivam-sharma
      @shivam-sharma Месяц назад

      Though constructor based in the preferred way, and can make the injected instance variables final.

  • @tomhollins9266
    @tomhollins9266 Месяц назад

    Excellent. Clearly stated. Excellent examples.

  • @ishusinghal3446
    @ishusinghal3446 4 месяца назад

    Koushik helped me to get grow technically & financially a lot thanks for all your information videos and very crucial information.

  • @marvellouschandan
    @marvellouschandan 9 месяцев назад

    Happy to say that I am using all the best practices what Kaushik has suggested 😃

  • @mdk1983
    @mdk1983 9 месяцев назад +1

    Lovely topic Koushik. This is like correcting posture for regular Gym goers. It is important to know the how and why.

    • @Java.Brains
      @Java.Brains  9 месяцев назад +2

      Haha that's a great analogy. We tend to get into bad habits that needs correction sometimes!

  • @GreatSanto
    @GreatSanto 3 месяца назад +1

    Why to use constructor injection if Autowired annotation can do the job!!!!

  • @debkr
    @debkr 9 месяцев назад

    Nice. Your videos have improved a lot 👍

  • @nitinpandey2627
    @nitinpandey2627 9 месяцев назад +1

    Yet another good one Koushik. Keep it up.
    I don't have any spring boot related mistakes to report yet.. Still learning to make some good mistakes 😉

  • @weirdo-beardo
    @weirdo-beardo 6 месяцев назад

    Constructor injection not just helped in removing @Autowired but also gave the ability to make the repo variable final.

  • @rexsam3134
    @rexsam3134 9 месяцев назад +1

    If i have 15 or more Autowired then am I supposed to add them in that Constructor Injection? Private is good enough. Are you saying i can add final to Constructor Injection?

  • @raamch
    @raamch 8 месяцев назад

    great content on how to avoid spring boot basic mistakes.

  • @cloudpavan
    @cloudpavan 9 месяцев назад +1

    Hey Koushik, would you mind opening up your calendar for 1-1 sessions, we are missing it.

  • @Manuel-oe4gv
    @Manuel-oe4gv 9 месяцев назад

    Good take on Global Exception Handler

  • @pmorah
    @pmorah 6 месяцев назад

    Love your videos. Thanks a lot for sharing.

  • @badiuljamal8705
    @badiuljamal8705 2 месяца назад +1

    How's using @Autowired instead of constructor injection. As it give more readability?

    • @shadowuser1979
      @shadowuser1979 20 дней назад

      I would say no.
      But constructor injection or setter injection helps you also for unit test. So you can mock your services/repository easily.

  • @aleyrizvi
    @aleyrizvi 5 месяцев назад

    I am learning Java now. However, when I compare it to other cool hipster languages, I feel java is slow.
    Is it worth it? is it still used only for enterprise monoliths or is it making its way to microservices?

  • @petrodrobov
    @petrodrobov 9 месяцев назад

    Do we have possibility in Spring to swich the log level on fly? I mean to change Info to Debug in production without restatring the spring app?

  • @ezrasamson-ez2mv
    @ezrasamson-ez2mv 5 месяцев назад +1

    error: cannot find symbol
    @SpringBootApplication man this error comes when i start to run the project on visual studio code

  • @giovannisardisco4541
    @giovannisardisco4541 7 месяцев назад

    Exception handling in Spring Boot is an art. I don't like to define custom Exception for known what happen.
    I'm curious about the right way to define persolalized error response.

  • @anandoza7443
    @anandoza7443 9 месяцев назад

    Valuable info. Thanks.

  • @vinaykumardiona
    @vinaykumardiona 9 месяцев назад

    Great video 👏🏻👏🏻 Thank you Koushik sir

  • @omgmaw
    @omgmaw 9 месяцев назад

    Are there any performance impact of using too many annotations?

  • @divakarsaragadam8420
    @divakarsaragadam8420 9 месяцев назад

    Thaks for sharing your knowledge for free of cost I will simplify the writing code

  • @prakashbhattarai947
    @prakashbhattarai947 9 месяцев назад

    So much information in such a short video. Loved ❤

  • @kchemutai3483
    @kchemutai3483 9 месяцев назад

    Very Informative.. Thank you

  • @gowthamkrishnasamy
    @gowthamkrishnasamy 9 месяцев назад

    Good one, but Autowired annotations is useful man. It reduces two lines of code

  • @anthonya880
    @anthonya880 9 месяцев назад +3

    Please add some new deep dive courses.

  • @poojabondkar4983
    @poojabondkar4983 9 месяцев назад

    This is really very helpful. Keep help us to learn lot of like this .

  • @Aabara_ka_dabara
    @Aabara_ka_dabara 9 месяцев назад

    when will the lectures of Spring Essentials coming?

  • @anirudhhosur3827
    @anirudhhosur3827 9 месяцев назад

    I completely agree.
    I try to cover the same concepts and teach the same scenarios and use cases to my students.
    Great video.
    I would love to do a collab some day :)
    Best
    Anirudh

  • @SumanthaMK
    @SumanthaMK 9 месяцев назад

    Very Informative

  • @MCR0709
    @MCR0709 Месяц назад

    Hey man, Spring has made programming HyperMarkup (annotations ) programming and I think that's why we should discourage using Spring.

  • @nagzeal
    @nagzeal 9 месяцев назад

    Great information, keep it up Sir. Masterpiece consolidation.

  • @MarathiNationOne
    @MarathiNationOne 9 месяцев назад +1

    I agree with we should use constructor injection but it makes code little bulky,, why can't we use field injection instead even it looks clean. what would be the your suggestion in practically

    • @213bballer
      @213bballer 9 месяцев назад

      You can use Lombok and have contructor injection and it’s really clean

  • @as_wani
    @as_wani 9 месяцев назад

    Very informative, learned a lot from you, Thanks again

  • @abhishekkumarroy2815
    @abhishekkumarroy2815 9 месяцев назад

    Thanks ❤ kaushik provide this valuable information,your every video lectures provide valuable information

  • @hyperborean72
    @hyperborean72 9 месяцев назад

    very useful remarks

  • @supun_sandaruwan
    @supun_sandaruwan 9 месяцев назад

    Great Content Thank you 😍

  • @ArjunKumar-zu2kl
    @ArjunKumar-zu2kl 9 месяцев назад

    Very nicely explained, thank you so much...

  • @tyler13923
    @tyler13923 9 месяцев назад

    your mic recording has too much bass and sounds muddy, but love the content keep it up.

  • @satya12389
    @satya12389 9 месяцев назад

    Can you please do video on go language and how it's future if learn...I am from Java background

  • @punyabikash3624
    @punyabikash3624 9 месяцев назад

    Very nice sir 👌 👍 truely very informative and helpful 😊

  • @cool-aquarian
    @cool-aquarian 9 месяцев назад +2

    Should start new channel called Spring Brains

  • @nitahgs
    @nitahgs 4 месяца назад

    About using the constructor instead of the @Autowired annotation, chatgpt answered:
    Best Practices
    Prefer Constructor Injection:
    It is generally recommended to use constructor injection because it promotes immutability, better testability, and clear dependency declaration.
    Use Field Injection Sparingly:
    Field injection can be used in scenarios where constructor injection is not feasible or would overly complicate the code. For instance, it is often used in integration tests or for optional dependencies.

  • @asfakmhmd
    @asfakmhmd 7 месяцев назад

    3:06 removing autowired and adding @reqargconstructor to add constructor injection 🤣

  • @khalidben9940
    @khalidben9940 9 месяцев назад

    Very good content

  • @mr.uthamaputhiran9790
    @mr.uthamaputhiran9790 9 месяцев назад

    Thanks for this. But I was wondering isnt Autowired annotation more concise than verbose constructor injection?

    • @Quillraven
      @Quillraven 9 месяцев назад +1

      Autowired makes your properties mutable. Constructor injection can make them immutable which should always be preferred.
      Also, if you use Lombok it is as simple as adding a RequiredArgs annotation to your class.

  • @simplyabdou8425
    @simplyabdou8425 9 месяцев назад

    very darn helpful thanks !

  • @RoopkishorPandeyji
    @RoopkishorPandeyji 9 месяцев назад +1

    Last week I have watched spring boot videos from java brains those are 7 years old videos

    • @Java.Brains
      @Java.Brains  9 месяцев назад +4

      Yup, and surprisingly, those are still relevant for the most part! :)

  • @victordo6685
    @victordo6685 9 месяцев назад

    nice

  • @rtb8085
    @rtb8085 9 месяцев назад +1

    Field wiring should not be used, its best practice to use constructor injection !

  • @AjayKumar-fd9mv
    @AjayKumar-fd9mv 9 месяцев назад

    😊

  • @Tony-dp1rl
    @Tony-dp1rl 9 месяцев назад +1

    Your first mistake is choosing Spring Boot, every other mistake stems from that.