Hi!
Spring 2.0 RC1 build 44.
I've followed the petclinic example that comes with the distribution to implement a simple DAO using Spring's JdbcDaoSupport.
So there is an interface MyDao and an implementation MyJdbcDaoImpl.
I then created a test case that inherits from AbstractTransactionalDataSourceSpringContextTests and I get an exception when executing this test case.
Error creating bean with name 'MyJdbcDaoImplTest': Unsatisfied dependency expressed through bean property 'myDao': There are 2 beans of type [interface MyDao] for autowire by type....
Now I'm a little bit confused. There are two types but one is an interface. Why is Spring unable to resolve this?
Any ideas?
Thanks,
KM


Reply With Quote
