I have just updated from spring 3.2 to spring 4.0.0.RC2 but now I am getting the following expection
org.springframework.beans.factory.NoSuchBeanDefinitionException
on my dao classes when running tests. It fails when autowiring the PersistenceContext (which is our own generic class).
@Repository
public class AccountDaoImpl extends AbstractDao<Account> implements AccountDao {
@Autowired
public AccountDaoImpl(final PersistenceContext<Account> context) {
super(context);
}
...
If I change the version back to 3.2 everything works. What is different in 4.0 that is causing this problem?