chenjiahe
2022-06-15 11f9478b32b710e022c328972fd2e07c72a62df8
提交 | 用户 | age
5c5945 1 package com.hx.annotation;
E 2
3 import java.lang.annotation.Documented;
4 import java.lang.annotation.ElementType;
5 import java.lang.annotation.Inherited;
6 import java.lang.annotation.Retention;
7 import java.lang.annotation.RetentionPolicy;
8 import java.lang.annotation.Target;
9
10 /**权限注解
11  * @author chenjiahe
12  * @version 2019年09月14日 下午6:13:37 
13  */
14 //表示注解加在接口、类、枚举等
15 @Target(ElementType.METHOD)
16 //VM将在运行期也保留注释,因此可以通过反射机制读取注解的信息
17 @Retention(RetentionPolicy.RUNTIME)
18 //将此注解包含在javadoc中
19 @Documented
20 //允许子类继承父类中的注解
21 @Inherited
22 public @interface Jurisdiction {
23     /**权限名*/
24      String privilege();
25 }