Skip to content

Commit

Permalink
代码优化
Browse files Browse the repository at this point in the history
  • Loading branch information
smthing committed Aug 20, 2024
1 parent 9ef1693 commit e14f47a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private void initContainer(DeploymentInfo deploymentInfo) throws ServletExceptio
ServletInfo webXmlInfo = deploymentInfo.getServlets().get(servletInfo.getServletName());
if (webXmlInfo != null) {
servletInfo.getInitParams().forEach(webXmlInfo::addInitParam);
webXmlInfo.getSecurityConstraints().addAll(servletInfo.getSecurityConstraints());
} else {
deploymentInfo.addServlet(servletInfo);
}
Expand Down

0 comments on commit e14f47a

Please sign in to comment.