I am learning Spring and I read the Spring in Action book. I wonder if you are supposed to inject an empty arraylist (if that is possible) or create it like the example below?
public class StackOverflow {
private List<Car> cars;
public StackOverflow() {
cars = new ArrayList<Car>();
}
}
See Question&Answers more detail:os