spring 获取对象的注解

时间:2018-08-11 21:25:14   收藏:0   阅读:333

 

 

BeanDefinition definition = registry.getBeanDefinition(name);
if (definition instanceof AnnotatedBeanDefinition) {
  AnnotatedBeanDefinition annotatedDefinition = (AnnotatedBeanDefinition) definition;
  addComponentScanningPackages(packages, annotatedDefinition.getMetadata());
}

 

原文:https://www.cnblogs.com/xiluhua/p/9461017.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!