It is also possible to provide all beans of a particular type from the ApplicationContext by adding the annotation to a field or method that expects an array of that type:

如果在数组或者是集合上使用@Autowire,就会把容器中的所有该类型的对象全部付给该数组或集合