Reputation: 1778
I am new to Spring can anyone tell me What is difference between autowiring vs dependency injection in Spring ?
I tried to search on internet but I dont find things much helpful.
Upvotes: 1
Views: 2374
Reputation: 77177
There is no difference. When the concept was new, there were several names used, and "dependency injection" ended up becoming the most common. Spring's configuration system used "autowire", and that's stuck around there, and the GoF term "inversion of control" is sometimes used, usually in a more academic setting. They're all synonyms.
Upvotes: 3