优化: 改用注解方式验证是否登录和权限 【废弃配置文件方式】

This commit is contained in:
TinyAnts
2023-03-13 15:36:04 +08:00
parent 9cc41d2e80
commit 1c480b9630
40 changed files with 321 additions and 290 deletions

View File

@@ -0,0 +1,12 @@
package com.mdd.common.aop;
import java.lang.annotation.*;
/**
* 免登录校验注解类
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NotLogin {
}

View File

@@ -0,0 +1,12 @@
package com.mdd.common.aop;
import java.lang.annotation.*;
/**
* 免权限校验注解类
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface NotPower {
}