@interface Xxx 等同于 interface Xxx extends Annotation
Annotation使用举例
0.了解元注解(用于标注注解的注解)
元注解 | 注解含义 | 参数 | 参数含义 |
@Target | 说明注解可能出现的位置 | ElementType.TYPE | 类, 接口 (包含注解), 枚举类 |
@interface Xxx 等同于 interface Xxx extends Annotation
元注解 | 注解含义 | 参数 | 参数含义 |
@Target | 说明注解可能出现的位置 | ElementType.TYPE | 类, 接口 (包含注解), 枚举类 |