Could not autowire method… javax.sql.DataSource: expected at least 1 bean which qualifies…

If you are extending AbstractTransactionalJUnit4SpringContextTests, are you sure you need to do that? Removing that might fix it.