@@ -131,7 +131,11 @@ public class SecurityValidateInterceptor implements HandlerInterceptor, WebMvcCo
return true;
}
- Session session = SessionContextHolder.getSession();
+ Session session = SessionContextHolder.getSession(false);
+ if (session == null) {
+ return true;
+ }
+
if (security == null || security.header()) {
// 请求头非空校验
Long timestamp = session.getTimestamp();