Merge branch '3.3.x' into 3.4.x

Closes gh-44245
This commit is contained in:
Stéphane Nicoll
2025-02-12 20:25:20 +01:00

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);
}
}