Uses of Class
org.springframework.boot.builder.SpringApplicationBuilder
Packages that use 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
Methods in org.springframework.boot.builder that return SpringApplicationBuilderModifier and TypeMethodDescriptionSpringApplicationBuilder.addBootstrapRegistryInitializer(BootstrapRegistryInitializer bootstrapRegistryInitializer) AddsBootstrapRegistryInitializerinstances 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 theApplicationStartupto be used with theApplicationContextfor collecting startup metrics.Sets theBannerinstance 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 theApplicationContextbefore 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=valueorkey: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 createdApplicationContextshould have a shutdown hook registered.SpringApplicationBuilder.resourceLoader(ResourceLoader resourceLoader) ResourceLoaderfor the application context.SpringApplicationBuilder.setAddConversionService(boolean addConversionService) Flag to indicate if theApplicationConversionServiceshould 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
Methods in org.springframework.boot.web.servlet.support that return SpringApplicationBuilderModifier and TypeMethodDescriptionprotected SpringApplicationBuilderSpringBootServletInitializer.configure(SpringApplicationBuilder builder) Configure the application.protected SpringApplicationBuilderSpringBootServletInitializer.createSpringApplicationBuilder()Returns theSpringApplicationBuilderthat is used to configure and create theSpringApplication.Methods in org.springframework.boot.web.servlet.support with parameters of type SpringApplicationBuilderModifier and TypeMethodDescriptionprotected SpringApplicationBuilderSpringBootServletInitializer.configure(SpringApplicationBuilder builder) Configure the application.