title: Spring @Autowire two beans of the same class which are not defined in ApplicationContext
body: <p>I am working on Spring MVC app and encountered a problem. I am new to Spring, so please forgive me if my working is a bit clumsy. Basically I have a java class ContractList. In my application I need two different objects of this class (both of them must be singleton)</p>
  
  <pre><code>public class MyClass {
      @Autowired
      private ContractList contractList;
  
      @Autowired
      private ContractList correctContractList;
  
      .. do something..
  }
  </code></pre>
  
  <p>Note that both of these beans are not defined in ApplicationContext.xml. I am using only annotations. So when I try to access them - contractList and correctContractList end up referring to the same object. Is there a way to somehow differentiate them without defining them explicitly in ApplicationContext.xml ? </p>