//当前请求的用户id
Long userId = Long.valueOf(decodedJWT.getClaim("id").asString());
//当前线程上设置用户id,BaseContext是自己编写的类,注意一下
BaseContext.setUserId(userId);
log.info("token验证通过,threadLocal线程缓存用户id为:{}", userId);
log.info("token验证通过,getUserId:{}", BaseContext.getUserId());
//这个要放在最后,不然BaseContext的内容,后面读取不到
filterChain.doFilter(request, response);
return; //通过检测可以继续