title: Autowire Spring XML bean inside Spring JavaConfig
body: <p>I have a xml bean definition and JavaConfig bean definition in the same project. The JavaConfig need to reference the XML bean. But When i autowire the xml bean definition inside JavaConfig I get NoSuchBean definition error. My question is: Isnt the xml beans and JavaConfig beans visible to each other? If not how do i inject the xml bean into JavaConfig? Thanks</p>
  
  <p>Edit: </p>
  
  <p>Changing @Autowire to @Resource fixed it, but i dont understand why. Autowire should go after type and the XML bean is of the type Autowire is annoted with.</p>