src/main/java/com/xcong/excoin/configurations/security/TokenFilter.java
@@ -60,9 +60,11 @@ SecurityContextHolder.getContext().setAuthentication(authentication); redisUtils.expire(redisKey, 300000); } else { log.info("token无法查询:{}", token); SecurityContextHolder.clearContext(); } } else { log.info("token为空:{}", request.getRequestURI()); SecurityContextHolder.clearContext(); }