Announcement Announcement Module
Collapse
No announcement yet.
Why @Autowire an interface ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why @Autowire an interface ?

    Hi all
    I have a very general question, In Spring why do we Autowire an interface and not implementation class?
    Thank you
    Zed

  • #2
    Anyone ???

    Comment


    • #3
      Hmm friend as far as I am concerned it is an interface rather than a class so that you can wire it in a different implementation, that is not possible with class.

      Comment

      Working...
      X