I’m already using Spring with all my might , where for every “fart” there’s an @autowired. Everything works great, it’s convenient and simply amazing. But at one point I realized that I didn’t understand anything) How does it work? Colleagues! Help me figure it out...
I'm interested in an example for dummies... How can I inject an instance of one class into a field of another without Spring? Maybe you can give a simple link, or explain in the comments.
![Dependency Injection. Help the teapot! - 1](https://cdn.javarush.com/images/article/8a8946fc-ac74-4ef6-a13c-a7917060e17d/800.jpeg)
GO TO FULL VERSION