mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-20 09:12:55 +08:00
优化: 改用注解方式验证是否登录和权限 【废弃配置文件方式】
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.mdd.common.aop;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 免登录校验注解类
|
||||
*/
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface NotLogin {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mdd.common.aop;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 免权限校验注解类
|
||||
*/
|
||||
@Target({ElementType.METHOD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface NotPower {
|
||||
}
|
||||
Reference in New Issue
Block a user