public abstract class SpringBootServletInitializer extends Object
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 WebApplicationContext |
createRootApplicationContext(ServletContext servletContext) |
void |
onStartup(ServletContext servletContext) |
public void onStartup(ServletContext servletContext) throws ServletException
ServletException
protected WebApplicationContext createRootApplicationContext(ServletContext servletContext)
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
application
- a builder for the application contextSpringApplicationBuilder
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.