親クラスのコンストラクターがそのタイプのリストを受け取るときに、子クラスのコンストラクター引数として Bean を注入する方法。
@Service
public class Parent{
private List<MyObject> myObjectList;
public Parent(List<MyObject> myObjectList){
this.myObjectList = myObjectList;
}
}
@Service
public class Child extends Parent {
@Autowired
public Child(MyObject myObject){
super( ???? );
}
}