Some time ago i read about creating beans in Spring and there is an exception in creating bean for collections and maps. I mean to create a bean for collection or map, it is needed to create a wrapper class with for example a list as a field of this class
public class CollectionBean {
private List<String> someList;
}
and then it can be used in dependency injection. I wonder why it cannot be inject without wrapper class?