I have a bean Item which is required to be autowired in a @Configuration class.
@Configuration
public class AppConfig {
Spring autowired strategy is defined in your configration file(application.xml).
if you don't defined, default is by Type, spring inject use JDK reflect mechanism.
so List?String? and List?Item?, the type is same List.class, so spring confused how to inject.
and as above persons response, you should be point @Qualifier to tell spring which bean should be inject.
i like spring configration file to define bean rather then Annotation.
<....>