What is Dependency Injection? | Why | Spring

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

For More Queries WhatsApp or Call on : +919008963671

Spring Dependency Injection.

In software engineering, dependency injection is a technique whereby one object (or static method) supplies the dependencies of another object. A dependency is an object that can be used (a service). An injection is the passing of a dependency to a dependent object (a client) that would use it. The service is made part of the client's state.[1] Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.
-wikipedia

Dependency Injection is a design pattern.
In this video we will see :
- What is Dependency Injection
- Why it is so famous
- An example of Dependency Injection explaining the process.
- Object dependency
- Loose Coupling
- Tight Coupling
- Dpendency injectction container
- Spring container
- Spring Boot
- @Component
- @Autowired
- Testing
- Mock Object
- Maintenance

Editing Monitors :

Subscribe to our other channel:
Telusko Hindi :

#spring #Dependencies

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

You're not just a programmer but also an awesome story teller. When asked about dependency injection people make it so complex that you start scratching your head.... But you explained like it was a piece of cake. 🙏

dhananajaykrishna
Автор

Big brother, you speak so beautifully your words directly injects into my brain without an error at all. Everything becomes so comprehensible when you explain it.

deleater
Автор

Sir, from the beginning of my programming you have been with me. Thank you so much for your instructions !

mahmudhr
Автор

One of the best YouTuber in teaching. Seriously I learned a lot from this channel

doglover
Автор

I have watched more of your videos to learn SWE topics than I can count. You have been instrumental in allowing me to understand these concepts intuitively. Big thanks!

AnthonyHernandez-tbcu
Автор

Really good explanation I covered Software Engineering recently + have been using Spring and Angular and never actually realised about this loosely coupled idea. Nice philosophy behind how project should be managed. Also the part of testing that loose coupling makes it easier to test, never realised that :-D Great explanation a bit of practical would be plus ...

RAJATTHEPAGAL
Автор

Best tutorial on dependency injection. Finally, I got what it really is.

ShivamSingh-yljo
Автор

My day starts with Telusko <3 addictive contents, Simple to grasp, Great explanantions ...

karthickd
Автор

Man, 5 years old video and still the best explanation about dependency explanation. This guy truly knows the subject, and he knows which example to pick to explain what topic. He has the teaching spirit in him. Hands down the best youtube channel. whenever, i have a doubt i come here, dang the concepts are much clear. Kudos to you brother.

krishnabangari
Автор

Fantastic explanation that takes away the confusion. We tend to use such big words when a simple explanation is the best way. I have been doing this concept since 1975 and it always amuses me when the industry comes up with a new concept that really is just doing good programming with a different word. Great job!

stevensmith
Автор

this is the best explanation about dependency injection in Spring ive heard so far. Simple but I can understand it so well! Thank you!

yosukeyoh
Автор

At it's core, dependency injection centralizes the creation of concrete objects that your client (meaning your code) uses and can use in many places. This provides many benefits, first you are able to easily switch out the implementation, you are able to easily test the implementation, and you are able to wrap or manipulate how you want it to instantiate. Whether it be wrapping authentication around it or adding pre and post processing, or auditing/logging to it and you can do this retroactively in the entire system in a very easy manner.

gregc
Автор

man, the passion and joy of teaching in this guy's eyes is sight to behold...

piyushbhuva
Автор

Thanks for a very thorough and simple explanation. Your tutorials are addictive. God bless you.

dpatel
Автор

You are the God of Java dude.. I was searching this explanation for a whole week and i got that within 8 mins from your video. Thanks a lot.

neerarjayan
Автор

Im 7+ yr experience in java and spring and i always screwed up the defination of dependency injection in the interviews 🤣

iarpanbose
Автор

This guy is teaching me everything...i am not even browsing youtube. Once i find this guy i go ahead...and it always work. Best teacher

AdamVigas
Автор

This guy, men you are a good teacher. I don't know if you know David J. Malan from Havard?
You and that guy are my best teachers of all time. Good job!

specialk
Автор

thanks for using classes on screen. got some idea of the concept.

hinafraz
Автор

ive been wandering around for days trying to find a proper explanation for DI...and although im focussed on DI in Dart this video was the BEST to understand what it means...thank you very much sir

urvashisharma