一:获取类上注解的值
定义注解@Target(ElementType.TYPE)用于类,接口等
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Orange {
String getName();
String getValue();
}
https://blog.csdn.net/weixin_34221773/article/details/87442643