|
|
package com.xkl.authorization.interceptor;
|
|
|
|
|
|
import com.xkl.authorization.annotation.Authorization;
|
|
|
import com.xkl.authorization.manager.ITokenManager;
|
|
|
import com.xkl.authorization.model.TokenModel;
|
|
|
import com.xkl.authorization.manager.TokenManager;
|
|
|
import com.xkl.config.Constants;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
...
|
...
|
@@ -21,7 +21,7 @@ import java.lang.reflect.Method; |
|
|
public class AuthorizationInterceptor extends HandlerInterceptorAdapter {
|
|
|
|
|
|
@Autowired
|
|
|
private TokenManager manager;
|
|
|
private ITokenManager manager;
|
|
|
|
|
|
public boolean preHandle(HttpServletRequest request,
|
|
|
HttpServletResponse response, Object handler) throws Exception {
|
...
|
...
|
|