mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
SaAnnotationInterceptor 与 SaRouteInterceptor 标注为过期
This commit is contained in:
@@ -11,10 +11,11 @@ import org.springframework.web.servlet.HandlerInterceptor;
|
||||
import cn.dev33.satoken.strategy.SaStrategy;
|
||||
|
||||
/**
|
||||
* 注解式鉴权 - 拦截器
|
||||
* Sa-Token 注解式鉴权 - 拦截器
|
||||
*
|
||||
* @author kong
|
||||
*/
|
||||
@Deprecated
|
||||
public class SaAnnotationInterceptor implements HandlerInterceptor {
|
||||
|
||||
/**
|
||||
@@ -30,7 +31,7 @@ public class SaAnnotationInterceptor implements HandlerInterceptor {
|
||||
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
|
||||
throws Exception {
|
||||
|
||||
// 获取处理method
|
||||
// 获取处理 Method
|
||||
if (handler instanceof HandlerMethod == false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -13,9 +13,10 @@ import cn.dev33.satoken.servlet.model.SaResponseForServlet;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
|
||||
/**
|
||||
* sa-token基于路由的拦截式鉴权
|
||||
* Sa-Token 拦截式鉴权 - 拦截器
|
||||
* @author kong
|
||||
*/
|
||||
@Deprecated
|
||||
public class SaRouteInterceptor implements HandlerInterceptor {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user