title: Duplicate bean names
body: <p>I have two beans with the same name in different packages:</p>
  
  <pre><code>package A;
  
  class EMDao {}
  
  package B;
  
  class EMDao {}
  
  package C;
  
  import B.EMDao;
  class EMService { @Resource EMDao emDao; }
  </code></pre>
  
  <p>I get this exception:</p>
  
  <blockquote>
    <p>org.springframework.context.annotation.ConflictingBeanDefinitionException:
    Annotation-specified bean name for bean class EMDao conflicts with
    existing, non-compatible bean definition of same name and class
    B.EMDao.</p>
  </blockquote>
  
  <p>Now I am trying to do this:</p>
  
  <pre><code>package B;
  
  @Qualifier(value="bEMDao")
  class EMDao {}
  
  package C;
  
  import B.EMDao;
  class EMService { @Qualifier(value="bEMDao") @Resource EMDao emDao; }
  </code></pre>
  
  <p>But I am still getting the same error.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks</p>