title: Can @Autowired and default-autowire coexist?
body: <pre><code>&lt;beans default-autowire="byType /&gt;
  </code></pre>
  
  <p>means that all fields of beans will automatically have dependencies injected if there is no more than 1 bean with the desired type.</p>
  
  <p>The question is how does this work when annotations are used, and does it work at all.</p>
  
  <p>My test showed that even if I use </p>
  
  <pre><code>@Resource(name="someConcreteFoo")
  private Foo foo;
  </code></pre>
  
  <p>the context tries to autowire the field by type and fails if there are multiple implementations of <code>Foo</code>. So, for what I see, <code>default-autowire</code> doesn't mix with annotations. I couldn't find anything specific in the documentation. </p>
  
  <p>To extend the question - how does spring behave with default-autowiring when xml-only is used. I.e. if you have <code>&lt;property&gt;</code>. Does the property injection override the default (it should be). </p>
  
  <p>I can do more tests, but I'd prefer the behaviour being confirmed by some quotations. Any insights?</p>