Package | Description |
---|---|
org.springframework.boot.builder |
Fluent 'builder' style API to construct a
SpringApplication . |
org.springframework.boot.web.support |
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(org.springframework.beans.factory.support.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 org.springframework.context.ConfigurableApplicationContext> cls)
Explicitly set the context class to be used.
|
SpringApplicationBuilder |
SpringApplicationBuilder.environment(org.springframework.core.env.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(org.springframework.context.ApplicationContextInitializer<?>... initializers)
Add some initializers to the application (applied to the
ApplicationContext
before any bean definitions are loaded). |
SpringApplicationBuilder |
SpringApplicationBuilder.listeners(org.springframework.context.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(org.springframework.context.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(org.springframework.core.io.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 © 2017 Pivotal Software, Inc.. All rights reserved.