Commit 0904787c authored by zhouxudong's avatar zhouxudong

反扒

parent c12fb331
......@@ -39,7 +39,7 @@ public class ForwardFilter implements Filter {
HttpServletResponse response = (HttpServletResponse) servletResponse;
String requestURI = request.getRequestURI();
String getRequest = request.getRequestURL().toString();
if (!requestURI.contains("/forward/test")) {
if (!requestURI.contains("/forward/route")) {
filterChain.doFilter(request, response);
return;
}
......@@ -71,7 +71,7 @@ public class ForwardFilter implements Filter {
}
private void loginFailHandler(HttpServletResponse response, String exception) throws IOException {
response.setStatus(509);
response.setStatus(HttpServletResponse.SC_OK);
AjaxResult result = new AjaxResult(509, exception, null);
this.printWriter(response, result);
}
......
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