Commit 2983040d authored by shaochangbin's avatar shaochangbin

在token认证前将所有请求都设为可访问true返回继续访问

parent d30950a3
......@@ -57,6 +57,11 @@ public class TokenInterceptor implements HandlerInterceptor {
response.setStatus(HttpServletResponse.SC_OK);
return true;
}
//token判断永真,不会到后面的token认证
if (true){
return true;
}
if(path.matches("/rest/(.*)")){
response.setCharacterEncoding("utf-8");
String token = request.getHeader("token");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment