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