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
Fields inherited from class org.springframework.boot.web.servlet.support.SpringBootServletInitializer
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SpringApplicationBuilder
configure
(SpringApplicationBuilder builder) Configure the application.void
onStartup
(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:
onStartup
in interfaceWebApplicationInitializer
- Overrides:
onStartup
in classSpringBootServletInitializer
- Throws:
ServletException
-
configure
Description copied from class:SpringBootServletInitializer
Configure 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:
configure
in classSpringBootServletInitializer
- Parameters:
builder
- a builder for the application context- Returns:
- the application builder
- See Also:
-