org.springframework.boot.web
Class SpringBootServletInitializer
java.lang.Object
org.springframework.boot.web.SpringBootServletInitializer
- All Implemented Interfaces:
- org.springframework.web.WebApplicationInitializer
public abstract class SpringBootServletInitializer
- extends Object
- implements org.springframework.web.WebApplicationInitializer
A handy opinionated 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.
- Author:
- Dave Syer
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
SpringBootServletInitializer
public SpringBootServletInitializer()
onStartup
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
- Specified by:
onStartup in interface org.springframework.web.WebApplicationInitializer
- Throws:
javax.servlet.ServletException
createRootApplicationContext
protected org.springframework.web.context.WebApplicationContext createRootApplicationContext(javax.servlet.ServletContext servletContext)
getConfigClasses
protected abstract Class<?>[] getConfigClasses()
Copyright © 2013. All Rights Reserved.