Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed Feb 8, 2025
1 parent 0ad4f53 commit 8853992
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,19 +441,14 @@ private ServletContextRuntime getServletRuntime(String localPath, String context
deploymentInfo.setEffectiveMinorVersion(Integer.parseInt(array[1]));
}
}
// if (webAppInfo.getLoginConfig() != null && webAppInfo.getLoginConfig().getLoginPage().endsWith(".jsp")) {
// servletRuntime.getServletContext().addJspFile("aaaaaa", webAppInfo.getLoginConfig().getLoginPage());
// }

//register Servlet into deploymentInfo
for (ServletInfo servletInfo : webAppInfo.getServlets().values()) {
deploymentInfo.addServlet(servletInfo);
List<String> list = webAppInfo.getServletMappings().get(servletInfo.getServletName());
if (list != null) {
for (String s : list) {
servletInfo.addServletMapping(s, servletRuntime);
}
list.forEach(s -> servletInfo.addServletMapping(s, servletRuntime));
}

}

webAppInfo.getErrorPages().forEach(deploymentInfo::addErrorPage);
Expand Down

0 comments on commit 8853992

Please sign in to comment.