mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
监控配置<url-pattern>/sys/druid/*</url-pattern>将项目部署到ROOT404问题修改
This commit is contained in:
@@ -215,7 +215,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");
|
||||
@@ -228,7 +228,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