Browse Source

Merge branch '3.3.x' into 3.4.x

Closes gh-44245
pull/44380/head
Stéphane Nicoll 12 months ago
parent
commit
f6f0daa47d
  1. 6
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java

6
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java

@ -1,5 +1,5 @@ @@ -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 @@ -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);
}
}

Loading…
Cancel
Save