Uses of Class
org.springframework.boot.builder.SpringApplicationBuilder
Package
Description
Fluent 'builder' style API to construct a
SpringApplication
.Support classes for Servlet-based web servers.
-
Uses of SpringApplicationBuilder in org.springframework.boot.builder
Modifier and TypeMethodDescriptionSpringApplicationBuilder.addBootstrapRegistryInitializer
(BootstrapRegistryInitializer bootstrapRegistryInitializer) AddsBootstrapRegistryInitializer
instances that can be used to initialize theBootstrapRegistry
.SpringApplicationBuilder.addCommandLineProperties
(boolean addCommandLineProperties) Flag to indicate that command line arguments should be added to the environment.SpringApplicationBuilder.allowCircularReferences
(boolean allowCircularReferences) Whether to allow circular references between beans and automatically try to resolve them.SpringApplicationBuilder.applicationStartup
(ApplicationStartup applicationStartup) Configure theApplicationStartup
to be used with theApplicationContext
for collecting startup metrics.Sets theBanner
instance which will be used to print the banner when no static banner file is provided.SpringApplicationBuilder.bannerMode
(Banner.Mode bannerMode) SpringApplicationBuilder.beanNameGenerator
(BeanNameGenerator beanNameGenerator) Bean name generator for automatically generated bean names in the application context.Create a child application with the provided sources.SpringApplicationBuilder.contextFactory
(ApplicationContextFactory factory) Explicitly set the factory used to create the application context.SpringApplicationBuilder.environment
(ConfigurableEnvironment environment) Environment for the application context.SpringApplicationBuilder.environmentPrefix
(String environmentPrefix) Prefix that should be applied when obtaining configuration properties from the system environment.SpringApplicationBuilder.headless
(boolean headless) Sets if the application is headless and should not instantiate AWT.SpringApplicationBuilder.initializers
(ApplicationContextInitializer<?>... initializers) Add some initializers to the application (applied to theApplicationContext
before any bean definitions are loaded).SpringApplicationBuilder.lazyInitialization
(boolean lazyInitialization) Flag to control whether the application should be initialized lazily.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.logStartupInfo
(boolean logStartupInfo) Flag to indicate the startup information should be logged.Fixes the main application class that is used to anchor the startup messages.Add a parent application with the provided sources.SpringApplicationBuilder.parent
(ConfigurableApplicationContext parent) Add an already running parent context to an existing application.Add to the active Spring profiles for this app (and its parent and children).SpringApplicationBuilder.properties
(String... defaultProperties) Default properties for the environment in the formkey=value
orkey:value
.SpringApplicationBuilder.properties
(Map<String, Object> defaults) Default properties for the environment.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.registerShutdownHook
(boolean registerShutdownHook) Sets if the createdApplicationContext
should have a shutdown hook registered.SpringApplicationBuilder.resourceLoader
(ResourceLoader resourceLoader) ResourceLoader
for the application context.SpringApplicationBuilder.setAddConversionService
(boolean addConversionService) Flag to indicate if theApplicationConversionService
should be added to the application context'sEnvironment
.Create a sibling application (one with the same parent).Create a sibling application (one with the same parent).Add more sources (configuration classes and components) to this application.SpringApplicationBuilder.web
(WebApplicationType webApplicationType) Flag to explicitly request a specific type of web application. -
Uses of SpringApplicationBuilder in org.springframework.boot.web.servlet.support
Modifier and TypeMethodDescriptionprotected SpringApplicationBuilder
SpringBootServletInitializer.configure
(SpringApplicationBuilder builder) Configure the application.protected SpringApplicationBuilder
SpringBootServletInitializer.createSpringApplicationBuilder()
Returns theSpringApplicationBuilder
that is used to configure and create theSpringApplication
.Modifier and TypeMethodDescriptionprotected SpringApplicationBuilder
SpringBootServletInitializer.configure
(SpringApplicationBuilder builder) Configure the application.