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

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

Introduction

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

The text is from its open source code.

Field

SpringApplicationapplication
Setsources
ConfigurableEnvironmentenvironment

Constructor

Method

SpringApplicationBuilderaddCommandLineProperties(boolean addCommandLineProperties)
Flag to indicate that command line arguments should be added to the environment.
SpringApplicationBuilderbanner(Banner banner)
Sets the Banner instance which will be used to print the banner when no static banner file is provided.
SpringApplicationBuilderbannerMode(Banner.Mode bannerMode)
SpringApplicationbuild()
Returns a fully configured SpringApplication that is ready to run.
SpringApplicationBuildercontextClass(Class cls)
Explicitly set the context class to be used.
SpringApplicationBuilderheadless(boolean headless)
Sets if the application is headless and should not instantiate AWT.
SpringApplicationBuilderinitializers(ApplicationContextInitializer... initializers)
Add some initializers to the application (applied to the ApplicationContext before any bean definitions are loaded).
SpringApplicationBuilderlisteners(ApplicationListener... listeners)
Add some listeners to the application (listening for SpringApplication events as well as regular Spring events once the context is running).
SpringApplicationBuilderlogStartupInfo(boolean logStartupInfo)
Flag to indicate the startup information should be logged.
SpringApplicationBuildermain(Class mainApplicationClass)
Fixes the main application class that is used to anchor the startup messages.
SpringApplicationBuilderprofiles(String... profiles)
Add to the active Spring profiles for this app (and its parent and children).
SpringApplicationBuilderproperties(String... defaultProperties)
Default properties for the environment in the form key=value or key:value .
SpringApplicationBuilderproperties(Properties defaultProperties)
Default properties for the environment in the form key=value or key:value .
SpringApplicationBuilderproperties(Map defaults)
Default properties for the environment.
ConfigurableApplicationContextrun(String... args)
Create an application context (and its parent if specified) with the command line args provided.
StringtoString()
Returns a string representation of the object.
SpringApplicationBuilderweb(WebApplicationType webApplicationType)
Flag to explicitly request a specific type of web application.