Package org.springframework.boot
Class SpringApplication.Augmented
java.lang.Object
org.springframework.boot.SpringApplication.Augmented
- Enclosing class:
- SpringApplication
Used to configure and run an augmented
SpringApplication
where additional
configuration should be applied.- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionRun the application using the given args.Return a newSpringApplication.Augmented
instance with additional sources that should be applied when the application runs.withAdditionalProfiles
(String... profiles) Return a newSpringApplication.Augmented
instance with additional profiles that should be applied when the application runs.
-
Method Details
-
with
Return a newSpringApplication.Augmented
instance with additional sources that should be applied when the application runs.- Parameters:
sources
- the sources that should be applied- Returns:
- a new
SpringApplication.Augmented
instance
-
withAdditionalProfiles
Return a newSpringApplication.Augmented
instance with additional profiles that should be applied when the application runs.- Parameters:
profiles
- the profiles that should be applied- Returns:
- a new
SpringApplication.Augmented
instance - Since:
- 3.4.0
-
run
Run the application using the given args.- Parameters:
args
- the main method args- Returns:
- the running
ApplicationContext
-