4 Spring Boot Mistakes to AVOID in 2024

  Рет қаралды 66,192

Java Brains

Java Brains

Күн бұрын

Пікірлер: 89
@uhuebner
@uhuebner 11 ай бұрын
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 11 ай бұрын
Spring boot helped me to switch from 3.8 lpa to 23 lpa job. I love this framework.
@ChadSigma111
@ChadSigma111 11 ай бұрын
Congrats man. Any resources apart from this channel for a developer with 2 YOE?
@machchar_qing
@machchar_qing 11 ай бұрын
same question 🤔
@SB-pp6in
@SB-pp6in 11 ай бұрын
Can u tell what did u learned and do?
@maddymadhu
@maddymadhu 11 ай бұрын
Can you elaborate the path you took
@CodingMakesMeHappy
@CodingMakesMeHappy 11 ай бұрын
Please tell us what you learned exactly and from where you learned. It would be helpful for all
@CodeJava
@CodeJava 5 күн бұрын
I like the advice on exception handing around 9:40
@krasser650
@krasser650 11 ай бұрын
Complex things in simple words are priceless!
@rajkumarvb5197
@rajkumarvb5197 11 ай бұрын
Great piece of information for Junior Developers like me! Thanks Koushik.😊
@Java.Brains
@Java.Brains 11 ай бұрын
Glad you liked it
@AjayKumar-fd9mv
@AjayKumar-fd9mv 11 ай бұрын
Could you please explain how you achieved and your path,application to openings etc
@nitinmulay6832
@nitinmulay6832 11 ай бұрын
Thanks Kaushik .. since 8 years am following your useful contents for java 🙏
@jopadjr
@jopadjr 10 ай бұрын
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.
@someshvemula9966
@someshvemula9966 11 ай бұрын
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 11 ай бұрын
It's simply because you do not understand what constructor injection is
@shivam-sharma
@shivam-sharma 3 ай бұрын
Though constructor based in the preferred way, and can make the injected instance variables final.
@ishusinghal3446
@ishusinghal3446 6 ай бұрын
Koushik helped me to get grow technically & financially a lot thanks for all your information videos and very crucial information.
@paulsnehasish5830
@paulsnehasish5830 2 күн бұрын
very useful sir, can you also do a video showing all the various best practices to follow in springboot with examples
@tomhollins9266
@tomhollins9266 3 ай бұрын
Excellent. Clearly stated. Excellent examples.
@mdk1983
@mdk1983 11 ай бұрын
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 11 ай бұрын
Haha that's a great analogy. We tend to get into bad habits that needs correction sometimes!
@nitinpandey2627
@nitinpandey2627 11 ай бұрын
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 😉
@chandru_
@chandru_ 26 күн бұрын
Thanks a lot for the video
@weirdo-beardo
@weirdo-beardo 8 ай бұрын
Constructor injection not just helped in removing @Autowired but also gave the ability to make the repo variable final.
@debkr
@debkr 11 ай бұрын
Nice. Your videos have improved a lot 👍
@marvellouschandan
@marvellouschandan 10 ай бұрын
Happy to say that I am using all the best practices what Kaushik has suggested 😃
@pmorah
@pmorah 8 ай бұрын
Love your videos. Thanks a lot for sharing.
@raamch
@raamch 9 ай бұрын
great content on how to avoid spring boot basic mistakes.
@poojabondkar4983
@poojabondkar4983 11 ай бұрын
This is really very helpful. Keep help us to learn lot of like this .
@divakarsaragadam8420
@divakarsaragadam8420 11 ай бұрын
Thaks for sharing your knowledge for free of cost I will simplify the writing code
@anandoza7443
@anandoza7443 11 ай бұрын
Valuable info. Thanks.
@prakashbhattarai947
@prakashbhattarai947 11 ай бұрын
So much information in such a short video. Loved ❤
@Java.Brains
@Java.Brains 11 ай бұрын
Thank you!
@rexsam3134
@rexsam3134 11 ай бұрын
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?
@nagzeal
@nagzeal 11 ай бұрын
Great information, keep it up Sir. Masterpiece consolidation.
@kchemutai3483
@kchemutai3483 11 ай бұрын
Very Informative.. Thank you
@ArjunKumar-zu2kl
@ArjunKumar-zu2kl 11 ай бұрын
Very nicely explained, thank you so much...
@GreatSanto
@GreatSanto 4 ай бұрын
Why to use constructor injection if Autowired annotation can do the job!!!!
@vinaykumardiona
@vinaykumardiona 11 ай бұрын
Great video 👏🏻👏🏻 Thank you Koushik sir
@Manuel-oe4gv
@Manuel-oe4gv 11 ай бұрын
Good take on Global Exception Handler
@giovannisardisco4541
@giovannisardisco4541 8 ай бұрын
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.
@badiuljamal8705
@badiuljamal8705 3 ай бұрын
How's using @Autowired instead of constructor injection. As it give more readability?
@shadowuser1979
@shadowuser1979 2 ай бұрын
I would say no. But constructor injection or setter injection helps you also for unit test. So you can mock your services/repository easily.
@as_wani
@as_wani 11 ай бұрын
Very informative, learned a lot from you, Thanks again
@SumanthaMK
@SumanthaMK 10 ай бұрын
Very Informative
@petrodrobov
@petrodrobov 10 ай бұрын
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?
@PavanTheAnalyst
@PavanTheAnalyst 11 ай бұрын
Hey Koushik, would you mind opening up your calendar for 1-1 sessions, we are missing it.
@abhishekkumarroy2815
@abhishekkumarroy2815 11 ай бұрын
Thanks ❤ kaushik provide this valuable information,your every video lectures provide valuable information
@Java.Brains
@Java.Brains 11 ай бұрын
Thanks and welcome
@ezrasamson-ez2mv
@ezrasamson-ez2mv 6 ай бұрын
error: cannot find symbol @SpringBootApplication man this error comes when i start to run the project on visual studio code
@gowthamkrishnasamy
@gowthamkrishnasamy 11 ай бұрын
Good one, but Autowired annotations is useful man. It reduces two lines of code
@supun_sandaruwan
@supun_sandaruwan 11 ай бұрын
Great Content Thank you 😍
@anirudhhosur3827
@anirudhhosur3827 11 ай бұрын
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
@Aabara_ka_dabara
@Aabara_ka_dabara 11 ай бұрын
when will the lectures of Spring Essentials coming?
@punyabikash3624
@punyabikash3624 11 ай бұрын
Very nice sir 👌 👍 truely very informative and helpful 😊
@devrajatverma
@devrajatverma Ай бұрын
0:22 oh Reaaalllyyyy.... 😬
@asfakmhmd
@asfakmhmd 8 ай бұрын
3:06 removing autowired and adding @reqargconstructor to add constructor injection 🤣
@hyperborean72
@hyperborean72 11 ай бұрын
very useful remarks
@MarathiNationOne
@MarathiNationOne 11 ай бұрын
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 11 ай бұрын
You can use Lombok and have contructor injection and it’s really clean
@aleyrizvi
@aleyrizvi 6 ай бұрын
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?
@omgmaw
@omgmaw 11 ай бұрын
Are there any performance impact of using too many annotations?
@khalidben9940
@khalidben9940 11 ай бұрын
Very good content
@simplyabdou8425
@simplyabdou8425 11 ай бұрын
very darn helpful thanks !
@Java.Brains
@Java.Brains 11 ай бұрын
Glad it helped!
@satya12389
@satya12389 11 ай бұрын
Can you please do video on go language and how it's future if learn...I am from Java background
@anthonya880
@anthonya880 11 ай бұрын
Please add some new deep dive courses.
@tyler13923
@tyler13923 11 ай бұрын
your mic recording has too much bass and sounds muddy, but love the content keep it up.
@RoopkishorPandeyji
@RoopkishorPandeyji 11 ай бұрын
Last week I have watched spring boot videos from java brains those are 7 years old videos
@Java.Brains
@Java.Brains 11 ай бұрын
Yup, and surprisingly, those are still relevant for the most part! :)
@MCR0709
@MCR0709 2 ай бұрын
Hey man, Spring has made programming HyperMarkup (annotations ) programming and I think that's why we should discourage using Spring.
@mr.uthamaputhiran9790
@mr.uthamaputhiran9790 11 ай бұрын
Thanks for this. But I was wondering isnt Autowired annotation more concise than verbose constructor injection?
@Quillraven
@Quillraven 11 ай бұрын
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.
@nitahgs
@nitahgs 5 ай бұрын
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.
@cool-aquarian
@cool-aquarian 11 ай бұрын
Should start new channel called Spring Brains
@victordo6685
@victordo6685 11 ай бұрын
nice
@AjayKumar-fd9mv
@AjayKumar-fd9mv 11 ай бұрын
😊
@rtb8085
@rtb8085 11 ай бұрын
Field wiring should not be used, its best practice to use constructor injection !
@Tony-dp1rl
@Tony-dp1rl 11 ай бұрын
Your first mistake is choosing Spring Boot, every other mistake stems from that.
Top 8 Spring Properties You Should Know in 2024
18:44
Java Brains
Рет қаралды 44 М.
7 HIDDEN Spring Boot Features You Need To Enable NOW!
12:32
Tom Gregory Tech
Рет қаралды 3,7 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 38 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Top 25 Microservice Interview Questions Answered - Java Brains
39:54
🔔 Top 5 mistakes with Java Sets!
17:58
Java Brains
Рет қаралды 26 М.
Top 10 Spring Annotations to know in 2024
26:41
Java Brains
Рет қаралды 94 М.
Stop Recommending Clean Code
27:05
ThePrimeTime
Рет қаралды 563 М.
Top 7 Spring Boot Starters You Should Know in 2024 - Java Brains
15:47
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 20 М.
10 Spring and Spring Boot Common Mistakes You Need To STOP
15:49
Amigoscode
Рет қаралды 162 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 342 М.