Package | Description |
---|---|
org.springframework.boot.builder |
Fluent 'builder' style API to construct a
SpringApplication . |
org.springframework.boot.context.web |
Spring
ApplicationContext support relating to web
deployment. |
Modifier and Type | Method and Description |
---|---|
SpringApplicationBuilder |
SpringApplicationBuilder.addCommandLineProperties(boolean addCommandLineProperties)
Flag to indicate that command line arguments should be added to the environment.
|
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(Object... sources)
Create a child application with the provided sources.
|
SpringApplicationBuilder |
SpringApplicationBuilder.contextClass(Class<? extends ConfigurableApplicationContext> cls)
Explicitly set the context class to be used.
|
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.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(ConfigurableApplicationContext parent)
Add an already running parent context to an existing application.
|
SpringApplicationBuilder |
SpringApplicationBuilder.parent(Object... sources)
Add a parent application with the provided sources.
|
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 in the form
key=value or
key:value . |
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.sibling(Object... sources)
Create a sibling application (one with the same parent).
|
SpringApplicationBuilder |
SpringApplicationBuilder.sibling(Object[] 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.sources(Object... sources)
Add more sources to use in this application.
|
SpringApplicationBuilder |
SpringApplicationBuilder.web(boolean webEnvironment)
Flag to explicitly request a web or non-web environment (auto detected based on
classpath if not set).
|
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.
|
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.