|
@ -54,7 +54,7 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//设置userId到request里,后续根据userId,获取用户信息
|
|
|
//设置userId到request里,后续根据userId,获取用户信息
|
|
|
request.setAttribute(USER_KEY, Long.parseLong(claims.getSubject())); |
|
|
request.setAttribute(USER_KEY, claims.getSubject()); |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|