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