Authored by fangyeqing

FIX:

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 {
... ...
package com.xkl.authorization.manager.impl;
import com.xkl.authorization.manager.TokenManager;
import com.xkl.authorization.manager.ITokenManager;
import com.xkl.authorization.model.TokenModel;
import com.xkl.config.Constants;
import org.springframework.beans.factory.annotation.Autowired;
... ... @@ -13,10 +13,10 @@ import java.util.concurrent.TimeUnit;
/**
* 通过Redis存储和验证token的实现类
* @see com.xkl.authorization.manager.TokenManager
* @see com.xkl.authorization.manager.ITokenManager
*/
@Component
public class RedisTokenManager implements TokenManager {
public class RedisTokenManager implements ITokenManager {
private RedisTemplate<Long, String> redis;
... ...