title: How does Spring autowire by name when more than one matching bean is found?
body: <p>Suppose I have interfaces such as these:</p>
  
  <pre><code>interface Country {}
  class USA implements Country {}
  class UK implements Country ()
  </code></pre>
  
  <p>And this snippet of configuration xml:</p>
  
  <pre><code>&lt;bean class="USA"/&gt;
  &lt;bean id="country" class="UK"/&gt;
  &lt;bean id="main" class="Main"/&gt;
  </code></pre>
  
  <p>How can I control which dependency is autowired below?  I'd like the UK one.</p>
  
  <pre><code>class Main {
      private Country country;
      @Autowired
      public void setCountry(Country country) {
          this.country = country;
      }
  }
  </code></pre>
  
  <p>I am using Spring 3.0.3.RELEASE.</p>