public abstract class SpringBootServletInitializer extends Object implements org.springframework.web.WebApplicationInitializer
WebApplicationInitializer for applications that starts a
Spring Boot application and lets it bind to the servlet and filter mappings. 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 SpringApplicationBuilder |
configure(SpringApplicationBuilder application)
Configure the application.
|
protected org.springframework.web.context.WebApplicationContext |
createRootApplicationContext(javax.servlet.ServletContext servletContext) |
void |
onStartup(javax.servlet.ServletContext servletContext) |
public void onStartup(javax.servlet.ServletContext servletContext)
throws javax.servlet.ServletException
onStartup in interface org.springframework.web.WebApplicationInitializerjavax.servlet.ServletExceptionprotected org.springframework.web.context.WebApplicationContext createRootApplicationContext(javax.servlet.ServletContext servletContext)
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
application - a builder for the application contextSpringApplicationBuilderCopyright © 2014 Pivotal Software, Inc.. All rights reserved.