title: 2 beans with same name but in different packages; how to autowire them?
body: <p>I have an application that has 2 beans with the same name, but which are in different packages. My Spring application fails because it cannot decide on which bean to take. Is there any solution for this? The beans do not currently implement specific interfaces.</p>
  
  <p>See below an edited example of the exception:</p>
  
  <pre><code>Caused by:
  org.springframework.context.annotation.ConflictingBeanDefinitionException:
  Annotation-specified bean name 'dataTransferHandler' for bean class
  [aaaaa.ws.handler.DataTransferHandler] conflicts with existing,
  non-compatible bean definition of same name and class
  [bbbbb.ws.handler.DataTransferHandler]
  </code></pre>