From 830c2ef7f1349fd6c2025c4287c682e5af7dacdb Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 13 Dec 2019 11:31:06 -0800 Subject: [PATCH] Polish --- .../boot/web/servlet/support/SpringBootServletInitializer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java index d5b46890133..f4820723cc1 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java @@ -92,10 +92,12 @@ public abstract class SpringBootServletInitializer implements WebApplicationInit WebApplicationContext rootAppContext = createRootApplicationContext(servletContext); if (rootAppContext != null) { servletContext.addListener(new ContextLoaderListener(rootAppContext) { + @Override public void contextInitialized(ServletContextEvent event) { // no-op because the application context is already initialized } + }); } else {