mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Merge pull request #2023 from idawnorg/master
监控配置<url-pattern>/sys/druid/*</url-pattern>将项目部署到ROOT404问题修改
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user