|
|
|
@ -92,10 +92,12 @@ public abstract class SpringBootServletInitializer implements WebApplicationInit |
|
|
|
WebApplicationContext rootAppContext = createRootApplicationContext(servletContext); |
|
|
|
WebApplicationContext rootAppContext = createRootApplicationContext(servletContext); |
|
|
|
if (rootAppContext != null) { |
|
|
|
if (rootAppContext != null) { |
|
|
|
servletContext.addListener(new ContextLoaderListener(rootAppContext) { |
|
|
|
servletContext.addListener(new ContextLoaderListener(rootAppContext) { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void contextInitialized(ServletContextEvent event) { |
|
|
|
public void contextInitialized(ServletContextEvent event) { |
|
|
|
// no-op because the application context is already initialized
|
|
|
|
// no-op because the application context is already initialized
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
|