类的使用
cn.dev33.satoken.loveqq.boot.interceptor.SaInterceptor
使用SaInterceptor的程序包
-
cn.dev33.satoken.loveqq.boot.interceptor中SaInterceptor的使用
修饰符和类型方法说明SaInterceptor.isAnnotation(boolean isAnnotation) 设置是否打开注解鉴权:配置为 true 时注解鉴权才会生效,配置为 false 时,即使写了注解也不会进行鉴权写入 [ 认证函数 ]: 每次请求执行SaInterceptor.setBeforeAuth(cn.dev33.satoken.fun.SaParamFunction<Object> beforeAuth) 写入 [ 认证前置函数 ]: 在注解鉴权之前执行