What is the best and most used way of wiring in spring dependency injection : <p>This question is not pure coding but pre coding.
Actually I am new to spring in winter season. I have a question is that What is the best and most used way of wiring in spring dependency injection? I come to know that xml based wiring is old now. I have confusion between annotation and java-based autowiring. I didn't get enough evidence to choose the right one. Which is most used way now a days? or I have to learn all(which might be confusing at some point).</p>
