title: @EnableTransactionManagement,@ComponentScan and DataSourceTransactionManager problems
body: <p>In my application, I am using annotation-based spring configuration. </p>
  
  <p>I was using <code>@ComponentScan</code> (and it worked fine). Now I'm trying to add simple transaction management using <code>@EnableTransactionManagement</code>.</p>
  
  <p>However, when I add it, I start getting errors with one of the beans not being found (i.e. I get <code>BeanCreationException</code> because of <code>NoSuchBeanDefinitionException</code>). There is no other error (i.e. there is nothing related to the transaction management).</p>
  
  <p>When I comment <code>@EnableTransactionManagement</code> out, everything works fine. I am trying to use this with a <code>DataSourceTransactionManager</code></p>
  
  <p>What could be the reason?</p>