Spring 使用@Autowired注解注入集合类List,Map替代ApplicationContextAware获取Bean
@ComponentpublicclassApplicationContextUtilimplementsApplicationContextAware{/***上下文对象实例*/privatestaticApplicationContextapplicationContext;@OverridepublicvoidsetApplicationContext(ApplicationContexta