Spring Dependency Injection tutorial using eclipse

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,973
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 3, 2010

Video tutorial to configure spring dependency injection in a Java application using an Eclipse IDE .

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (skoiloth)

  • Your classpath may not have all the jar files required . Can post your classpath ?

  • 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 . 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 ..

  • thx buddy :) .Glad to know that it helped you !!

see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more