1.获取所有指定注解的类的bean信息

Map<String, Object> beansWithAnnotationMap = this.applicationContext.getBeansWithAnnotation(RespMegTypeSup.class);

String[] beanNames = this.applicationContext.getBeanNamesForAnnotation(RespMegTypeSup.class);

 

相关文章: