fengjin
2022-09-23 0550953f1d318d0c9162c05fc264fb7d00960ec5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.dg.core.annotation;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 在Controller的方法上使用此注解,该方法在映射时会检查用户是否登录,未登录返回401错误
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Authorization {
}