Autowired by generics works perfectly fine with static type.But when i write
@Autowired
private GenericDAO<T> dao;
with dynamic type at runtime getting error at deploy time:"multiple bean definition found."
Does Autowired by type in Spring 4 not work with runtime type?.