public abstract class SpringBootServletInitializer extends Object
WebApplicationInitializer
for applications that only have
one Spring servlet, and no more than a single filter (which itself is only enabled when
Spring Security is detected). If your application is more complicated consider using
one of the other WebApplicationInitializers.
Note that a WebApplicationInitializer is only needed if you are building a war file and
deploying it. If you prefer to run an embedded container (we do) then you won't need
this at all.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
SpringBootServletInitializer() |
Modifier and Type | Method and Description |
---|---|
protected WebApplicationContext |
createRootApplicationContext(ServletContext servletContext) |
protected abstract Class<?>[] |
getConfigClasses() |
void |
onStartup(ServletContext servletContext) |
public void onStartup(ServletContext servletContext) throws ServletException
ServletException
protected WebApplicationContext createRootApplicationContext(ServletContext servletContext)
protected abstract Class<?>[] getConfigClasses()
Copyright © 2013. All rights reserved.