Bean order when autowired into list
问题 I have defined an interface IWorker and some implementations of it as WorkerA and WorkerB , both annotated with @Component . I then autowire them into my app via: @Autowired private List<IWorker> workers = new ArrayList<IWorker>(); From what does the order the workers are put into the list depend on? How can I let additional WorkerC and WorkerD (also implementations of IWorker ) not annotated with @Component be autowired into the same list via my applicationContext.xml ? Is the order of