SpringBootServletInitializer@Deprecated public abstract class SpringBootServletInitializer extends SpringBootServletInitializer
WebApplicationInitializer to run a SpringApplication
from a traditional WAR deployment. Binds Servlet, Filter and
ServletContextInitializer beans from the application context to the servlet
container.
To configure the application either override the
SpringBootServletInitializer.configure(SpringApplicationBuilder) method (calling
SpringApplicationBuilder.sources(Object...)) or make the initializer itself a
@Configuration. If you are using SpringBootServletInitializer in
combination with other WebApplicationInitializers you
might also want to add an @Ordered annotation to configure a specific startup
order.
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 then you won't need this at all.
SpringBootServletInitializer.configure(SpringApplicationBuilder)logger| Constructor and Description |
|---|
SpringBootServletInitializer()
Deprecated.
|
configure, createRootApplicationContext, createSpringApplicationBuilder, onStartup, run, setRegisterErrorPageFilterCopyright © 2017 Pivotal Software, Inc.. All rights reserved.