From f6091e09c00f512a58f874e63771a4187df08c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A9=E7=BB=8D?= Date: Thu, 26 Oct 2017 09:58:40 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"=E7=9B=91=E6=8E=A7=E9=85=8D=E7=BD=AE/sys/druid/*=E5=B0=86=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=83=A8=E7=BD=B2=E5=88=B0ROOT404=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/alibaba/druid/support/http/ResourceServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java b/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java index b8db32385d..06d6d5b433 100644 --- a/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java +++ b/src/main/java/com/alibaba/druid/support/http/ResourceServlet.java @@ -220,7 +220,7 @@ public abstract class ResourceServlet extends HttpServlet { || path.startsWith("/js") // || path.startsWith("/img"))) { if (contextPath.equals("") || contextPath.equals("/")) { - response.sendRedirect("druid/login.html"); + response.sendRedirect("/druid/login.html"); } else { if ("".equals(path)) { response.sendRedirect("druid/login.html"); @@ -233,7 +233,7 @@ public abstract class ResourceServlet extends HttpServlet { if ("".equals(path)) { if (contextPath.equals("") || contextPath.equals("/")) { - response.sendRedirect("druid/index.html"); + response.sendRedirect("/druid/index.html"); } else { response.sendRedirect("druid/index.html"); }