一、注解中的信息已经在Class中了,我们应该如何读取出来

1 java.lang.reflect.AnnotatedElement接口:
2 
3 public Annotation[] getAnnotation(Class annotationType);
4 
5 public Annotation[] getDeclaredAnnotations();
6 
7 public Boolean isAnnotationPresent(Class annotationType);
View Code

相关文章: