Merge branch '3.4.x'

Closes gh-44246
This commit is contained in:
Stéphane Nicoll 2025-02-12 20:25:43 +01:00
commit 1d74d3df6f
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2023 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -237,8 +237,8 @@ public class ServletWebServerApplicationContext extends GenericWebApplicationCon
prepareWebApplicationContext(servletContext);
registerApplicationScope(servletContext);
WebApplicationContextUtils.registerEnvironmentBeans(getBeanFactory(), servletContext);
for (ServletContextInitializer beans : getServletContextInitializerBeans()) {
beans.onStartup(servletContext);
for (ServletContextInitializer initializerBean : getServletContextInitializerBeans()) {
initializerBean.onStartup(servletContext);
}
}