I am trying to create a list of my class object using @Autowire notation but I don't know how do I tell it the size.
For Example:
@Autowire
List<MyClassObject> listMyClassObject;
I observed that listMyClassObject always contains a single object. This behaviour is same as using like below
@Autowire
MyClassObject myClassObject;
My question is how do I specify a size for this list at runtime so that listMyClassObject is auto initialised with those many objects.I am trying to do this in spring boot