This commit is contained in:
udf_admin@163.com
2020-05-01 22:56:29 +08:00
parent 5ffa9e247f
commit f1198c433a
3 changed files with 10 additions and 13 deletions
@@ -52,6 +52,7 @@ public class WebHandlerInterceptor implements HandlerInterceptor {
}
//放入请求作用域
request.setAttribute(CommonConstant.PARAMETER_NAME_TOKEN_INFO, userDto);
request.setAttribute(CommonConstant.PARAMETER_NAME_TOKEN, token);
//刷新token ttl
dbCacheService.setTtl(token, CommonConstant.TOKEN_CACHE_TTL);
}