This commit is contained in:
Phillip Webb 2014-02-24 14:31:54 -08:00
parent cd3d4b485d
commit 0260297aa4
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ public abstract class SpringBootServletInitializer implements WebApplicationInit
@Override @Override
public void onStartup(ServletContext servletContext) throws ServletException { public void onStartup(ServletContext servletContext) throws ServletException {
WebApplicationContext rootAppContext = this WebApplicationContext rootAppContext = createRootApplicationContext(servletContext);
.createRootApplicationContext(servletContext);
if (rootAppContext != null) { if (rootAppContext != null) {
servletContext.addListener(new ContextLoaderListener(rootAppContext) { servletContext.addListener(new ContextLoaderListener(rootAppContext) {
@Override @Override