Example usage for Java org.springframework.boot.builder SpringApplicationBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
SpringApplication | application |
Set | sources |
ConfigurableEnvironment | environment |
SpringApplicationBuilder | addCommandLineProperties(boolean addCommandLineProperties) Flag to indicate that command line arguments should be added to the environment. |
SpringApplicationBuilder | banner(Banner banner) Sets the Banner instance which will be used to print the banner when no static banner file is provided. |
SpringApplicationBuilder | bannerMode(Banner.Mode bannerMode) |
SpringApplication | build() Returns a fully configured SpringApplication that is ready to run. |
SpringApplicationBuilder | contextClass(Class extends ConfigurableApplicationContext> cls) Explicitly set the context class to be used. |
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 the ApplicationContext before any bean definitions are loaded). |
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. |
SpringApplicationBuilder | main(Class> mainApplicationClass) Fixes the main application class that is used to anchor the startup messages. |
SpringApplicationBuilder | profiles(String... profiles) 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 form key=value or key:value . |
SpringApplicationBuilder | properties(Properties defaultProperties) Default properties for the environment in the form key=value or key:value . |
SpringApplicationBuilder | properties(Map Default properties for the environment. |
ConfigurableApplicationContext | run(String... args) Create an application context (and its parent if specified) with the command line args provided. |
String | toString() Returns a string representation of the object. |
SpringApplicationBuilder | web(WebApplicationType webApplicationType) Flag to explicitly request a specific type of web application. |