@SuppressWarnings("unchecked")
private AutowiredAnnotationResoved(ConfigurableListableBeanFactory beanFactory) {
this.beanFactory = beanFactory;
this.autowiredAnnotationTypes.add(Autowired.class);
this.autowiredAnnotationTypes.add(Value.class);
try {
this.autowiredAnnotationTypes.add((Class<? extends Annotation>) ClassUtils.forName("javax.inject.Inject",
AutowiredAnnotationBeanPostProcessor.class.getClassLoader()));
log.info("JSR-330 'javax.inject.Inject' annotation found and supported for autowiring");
} catch (ClassNotFoundException ex) {
}
}
AutowiredAnnotationResoved.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:elastic-config
作者:
评论列表
文章目录