From ea948b5f2d197b409bd086be1ada0c92ce86069c Mon Sep 17 00:00:00 2001 From: zhoudong Date: Wed, 12 Feb 2025 18:00:58 +0800 Subject: [PATCH] Fix variable naming in ServletWebServerApplicationContext.selfInitialize Signed-off-by: zhoudong --- .../servlet/context/ServletWebServerApplicationContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java index d6513792d21b..0e938bf30c12 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContext.java @@ -237,8 +237,8 @@ private void selfInitialize(ServletContext servletContext) throws ServletExcepti prepareWebApplicationContext(servletContext); registerApplicationScope(servletContext); WebApplicationContextUtils.registerEnvironmentBeans(getBeanFactory(), servletContext); - for (ServletContextInitializer beans : getServletContextInitializerBeans()) { - beans.onStartup(servletContext); + for (ServletContextInitializer initializerBean : getServletContextInitializerBeans()) { + initializerBean.onStartup(servletContext); } }