liujie
2025-06-09 70d2a5d0f9c6951b2d4cac954041ed73582ff7eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.panzhihua.service_equipment.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 {
}