Spring Dependency Injection tutorial using eclipse
Loading...
8,973
Loading...
Uploader Comments (skoiloth)
see all
All Comments (15)
-
I do exactly like what you do but I got an Error: java.lang.NoClassDefFoundError
: do you know why?
-
I'm expecting a good explanation from you rather than basics of design pattern and Head first java .. Are you from India ?
-
basis
-
Good start but you didnt go far enough and I can barely hear you!
-
Thanks, it cleared my concept as a beginner.
-
Thank you, this was very helpful!
Loading...
Your classpath may not have all the jar files required . Can post your classpath ?
skoiloth 8 months ago
where is the dependency injection man.Main class have a HAS-A relationship with User.so the Main class can directly access User class members.You need to create one interface and you have to declare that in configuration.Then only the spring IOC container perform the dependency Injection.
balajvinoth 1 year ago
@balajvinoth . I'm just showing a demo to configure Spring framework dependency injection in your application . Dependency injection (also called inversion of control) is basically giving an object what it needs instead of letting this object get it by itself. And I don't think you really need an interface to apply dependency injection you can very have it as per the design in your application . What do you mean by HAS a relation ? and how it hinder in getting the IOC in picture ..
skoiloth 1 year ago
thx buddy :) .Glad to know that it helped you !!
skoiloth 1 year ago