title: @Autowire does not work. Could not autowire, multiple bean with same name
body: <p>I am trying to create spring project in intellij. I have following interface:</p>
  
  <p><strong>DAO</strong></p>
  
  <pre><code>    public interface DAO&lt;T&gt; {
  
      public int create(T object);
      public T read(int id);
      public int update(int id, T object);
      public int delete(int id);
      }
  </code></pre>
  
  <p>I have two other classes, Employee and Customer that implements this interface with @Repository annotation on them.</p>
  
  <p>When I try to @Autowire the DAO interface in my controller class, IntelliJ shows compile time error "could not autowire, multiple bean of DAO type found".</p>
  
  <p>What am I doing wrong here?</p>