|
@@ -29,9 +29,7 @@ import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
-import static com.github.zuihou.context.BaseContextConstants.BASIC_HEADER_KEY;
|
|
|
-import static com.github.zuihou.context.BaseContextConstants.BEARER_HEADER_KEY;
|
|
|
-import static com.github.zuihou.context.BaseContextConstants.JWT_KEY_TENANT;
|
|
|
+import static com.github.zuihou.context.BaseContextConstants.*;
|
|
|
import static com.github.zuihou.exception.code.ExceptionCode.JWT_OFFLINE;
|
|
|
|
|
|
/**
|
|
@@ -164,13 +162,10 @@ public class TokenHandlerInterceptor extends HandlerInterceptorAdapter {
|
|
|
|
|
|
/**
|
|
|
* 忽略应用级token
|
|
|
- *
|
|
|
- * @return
|
|
|
*/
|
|
|
protected boolean isIgnoreToken(String uri)
|
|
|
{
|
|
|
- return true;
|
|
|
- //return ignoreTokenProperties.isIgnoreToken(uri);
|
|
|
+ return ignoreTokenProperties.isIgnoreToken(uri);
|
|
|
}
|
|
|
|
|
|
@Override
|