Package org.springframework.boot.cli.app
Class SpringApplicationWebApplicationInitializer
java.lang.Object
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
org.springframework.boot.cli.app.SpringApplicationWebApplicationInitializer
- All Implemented Interfaces:
WebApplicationInitializer
SpringBootServletInitializer for CLI packaged WAR files.- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Field Summary
FieldsFields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SpringApplicationBuilderconfigure(SpringApplicationBuilder builder) Configure the application.voidonStartup(ServletContext servletContext) Methods inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
createRootApplicationContext, createSpringApplicationBuilder, deregisterJdbcDrivers, run, setRegisterErrorPageFilter
-
Field Details
-
SOURCE_ENTRY
The entry containing the source class.- See Also:
-
-
Constructor Details
-
SpringApplicationWebApplicationInitializer
public SpringApplicationWebApplicationInitializer()
-
-
Method Details
-
onStartup
- Specified by:
onStartupin interfaceWebApplicationInitializer- Overrides:
onStartupin classSpringBootServletInitializer- Throws:
ServletException
-
configure
Description copied from class:SpringBootServletInitializerConfigure the application. Normally all you would need to do is to add sources (e.g. config classes) because other settings have sensible defaults. You might choose (for instance) to add default command line arguments, or set an active Spring profile.- Overrides:
configurein classSpringBootServletInitializer- Parameters:
builder- a builder for the application context- Returns:
- the application builder
- See Also:
-