Browse Source

Polish

pull/19563/head
Phillip Webb 6 years ago
parent
commit
830c2ef7f1
  1. 2
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/support/SpringBootServletInitializer.java

2
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 @@ -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 {

Loading…
Cancel
Save