-
Oct 13th, 2012, 05:39 AM
#1
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
-
Oct 15th, 2012, 02:38 PM
#2
-
Oct 15th, 2012, 11:56 PM
#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.
.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules