1.先使用元注解@Target定义这个自定义注解的作用域
2.在使用元注解@Retention定义这个自定义注解在什么时候运行
3.然后写一个@interface MyAnnotation{}
4.在{}中定义注解参数的就好了。
1.先使用元注解@Target定义这个自定义注解的作用域
2.在使用元注解@Retention定义这个自定义注解在什么时候运行
3.然后写一个@interface MyAnnotation{}
4.在{}中定义注解参数的就好了。