Java org.springframework.boot SpringApplication fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.boot SpringApplication fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.boot SpringApplication.

The text is from its open source code.

Subclass

org.springframework.boot.SpringApplication has subclasses.
Click this link to see all its subclasses.

Field

StringBANNER_LOCATION_PROPERTY
Banner location property key.

Constructor

Method

voidaddInitializers(ApplicationContextInitializer... initializers)
Add ApplicationContextInitializer s to be applied to the Spring ApplicationContext .
voidaddListeners(ApplicationListener... listeners)
Add ApplicationListener s to be applied to the SpringApplication and registered with the ApplicationContext .
voidaddPrimarySources(Collection> additionalPrimarySources)
Add additional items to the primary sources that will be added to an ApplicationContext when #run(String) is called.
intexit(ApplicationContext context, ExitCodeGenerator... exitCodeGenerators)
Static helper that can be used to exit a SpringApplication and obtain a code indicating success (0) or otherwise.
SetgetAllSources()
Return an immutable set of all the sources that will be added to an ApplicationContext when #run(String) is called.
ClassgetClass()
Returns the runtime class of this Object .
Set>getListeners()
Returns read-only ordered Set of the ApplicationListener s that will be applied to the SpringApplication and registered with the ApplicationContext .
ResourceLoadergetResourceLoader()
The ResourceLoader that will be used in the ApplicationContext.
SetgetSources()
Returns a mutable set of the sources that will be added to an ApplicationContext when #run(String) is called.
ConfigurableApplicationContextrun(String... args)
Run the Spring application, creating and refreshing a new ApplicationContext .
ConfigurableApplicationContextrun(Class primarySource, String... args)
Static helper that can be used to run a SpringApplication from the specified source using default settings.
ConfigurableApplicationContextrun(Class[] primarySources, String[] args)
Static helper that can be used to run a SpringApplication from the specified sources using default settings and user supplied arguments.
voidsetAdditionalProfiles(String... profiles)
Set additional profile values to use (on top of those set in system or command line properties).
voidsetApplicationContextClass( Class applicationContextClass)
Sets the type of Spring ApplicationContext that will be created.
voidsetBanner(Banner banner)
Sets the Banner instance which will be used to print the banner when no static banner file is provided.
voidsetBannerMode(Banner.Mode bannerMode)
Sets the mode used to display the banner when the application runs.
voidsetDefaultProperties(Map defaultProperties)
Set default environment properties which will be used in addition to those in the existing Environment .
voidsetDefaultProperties(Properties defaultProperties)
Convenient alternative to #setDefaultProperties(Map) .
voidsetHeadless(boolean headless)
Sets if the application is headless and should not instantiate AWT.
voidsetLogStartupInfo(boolean logStartupInfo)
Sets if the application information should be logged when the application starts.
voidsetRegisterShutdownHook(boolean registerShutdownHook)
Sets if the created ApplicationContext should have a shutdown hook registered.
voidsetSources(Set sources)
Set additional sources that will be used to create an ApplicationContext.
voidsetWebApplicationType(WebApplicationType webApplicationType)
Sets the type of web application to be run.