Package | Description |
---|---|
org.springframework.boot.builder |
Fluent 'builder' style API to construct a
SpringApplication . |
org.springframework.boot.cli.app |
Support classes for CLI applications.
|
org.springframework.boot.web.servlet.support |
Support classes for Servlet-based web servers.
|
Modifier and Type | Method and Description |
---|---|
SpringApplicationBuilder |
SpringApplicationBuilder.addBootstrapper(Bootstrapper bootstrapper)
Adds a
Bootstrapper that can be used to initialize the
BootstrapRegistry . |
SpringApplicationBuilder |
SpringApplicationBuilder.addCommandLineProperties(boolean addCommandLineProperties)
Flag to indicate that command line arguments should be added to the environment.
|
SpringApplicationBuilder |
SpringApplicationBuilder.applicationStartup(ApplicationStartup applicationStartup)
Configure the
ApplicationStartup to be used with the
ApplicationContext for collecting startup metrics. |
SpringApplicationBuilder |
SpringApplicationBuilder.banner(Banner banner)
Sets the
Banner instance which will be used to print the banner when no
static banner file is provided. |
SpringApplicationBuilder |
SpringApplicationBuilder.bannerMode(Banner.Mode bannerMode) |
SpringApplicationBuilder |
SpringApplicationBuilder.beanNameGenerator(BeanNameGenerator beanNameGenerator)
Bean name generator for automatically generated bean names in the application
context.
|
SpringApplicationBuilder |
SpringApplicationBuilder.child(Class<?>... sources)
Create a child application with the provided sources.
|
SpringApplicationBuilder |
SpringApplicationBuilder.contextClass(Class<? extends ConfigurableApplicationContext> cls)
Deprecated.
since 2.4.0 in favor of
contextFactory(ApplicationContextFactory) |
SpringApplicationBuilder |
SpringApplicationBuilder.contextFactory(ApplicationContextFactory factory)
Explicitly set the factory used to create the application context.
|
SpringApplicationBuilder |
SpringApplicationBuilder.environment(ConfigurableEnvironment environment)
Environment for the application context.
|
SpringApplicationBuilder |
SpringApplicationBuilder.headless(boolean headless)
Sets if the application is headless and should not instantiate AWT.
|
SpringApplicationBuilder |
SpringApplicationBuilder.initializers(ApplicationContextInitializer<?>... initializers)
Add some initializers to the application (applied to the
ApplicationContext
before any bean definitions are loaded). |
SpringApplicationBuilder |
SpringApplicationBuilder.lazyInitialization(boolean lazyInitialization)
Flag to control whether the application should be initialized lazily.
|
SpringApplicationBuilder |
SpringApplicationBuilder.listeners(ApplicationListener<?>... listeners)
Add some listeners to the application (listening for SpringApplication events as
well as regular Spring events once the context is running).
|
SpringApplicationBuilder |
SpringApplicationBuilder.logStartupInfo(boolean logStartupInfo)
Flag to indicate the startup information should be logged.
|
SpringApplicationBuilder |
SpringApplicationBuilder.main(Class<?> mainApplicationClass)
Fixes the main application class that is used to anchor the startup messages.
|
SpringApplicationBuilder |
SpringApplicationBuilder.parent(Class<?>... sources)
Add a parent application with the provided sources.
|
SpringApplicationBuilder |
SpringApplicationBuilder.parent(ConfigurableApplicationContext parent)
Add an already running parent context to an existing application.
|
SpringApplicationBuilder |
SpringApplicationBuilder.profiles(String... profiles)
Add to the active Spring profiles for this app (and its parent and children).
|
SpringApplicationBuilder |
SpringApplicationBuilder.properties(Map<String,Object> defaults)
Default properties for the environment.
|
SpringApplicationBuilder |
SpringApplicationBuilder.properties(Properties defaultProperties)
Default properties for the environment.Multiple calls to this method are cumulative
and will not clear any previously set properties.
|
SpringApplicationBuilder |
SpringApplicationBuilder.properties(String... defaultProperties)
Default properties for the environment in the form
key=value or
key:value . |
SpringApplicationBuilder |
SpringApplicationBuilder.registerShutdownHook(boolean registerShutdownHook)
Sets if the created
ApplicationContext should have a shutdown hook
registered. |
SpringApplicationBuilder |
SpringApplicationBuilder.resourceLoader(ResourceLoader resourceLoader)
ResourceLoader for the application context. |
SpringApplicationBuilder |
SpringApplicationBuilder.setAddConversionService(boolean addConversionService)
Flag to indicate if the
ApplicationConversionService should be added to the
application context's Environment . |
SpringApplicationBuilder |
SpringApplicationBuilder.sibling(Class<?>... sources)
Create a sibling application (one with the same parent).
|
SpringApplicationBuilder |
SpringApplicationBuilder.sibling(Class<?>[] sources,
String... args)
Create a sibling application (one with the same parent).
|
SpringApplicationBuilder |
SpringApplicationBuilder.sources(Class<?>... sources)
Add more sources (configuration classes and components) to this application.
|
SpringApplicationBuilder |
SpringApplicationBuilder.web(WebApplicationType webApplicationType)
Flag to explicitly request a specific type of web application.
|
Modifier and Type | Method and Description |
---|---|
protected SpringApplicationBuilder |
SpringApplicationWebApplicationInitializer.configure(SpringApplicationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected SpringApplicationBuilder |
SpringApplicationWebApplicationInitializer.configure(SpringApplicationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected SpringApplicationBuilder |
SpringBootServletInitializer.configure(SpringApplicationBuilder builder)
Configure the application.
|
protected SpringApplicationBuilder |
SpringBootServletInitializer.createSpringApplicationBuilder()
Returns the
SpringApplicationBuilder that is used to configure and create
the SpringApplication . |
Modifier and Type | Method and Description |
---|---|
protected SpringApplicationBuilder |
SpringBootServletInitializer.configure(SpringApplicationBuilder builder)
Configure the application.
|