类 SpringApplication.Augmented
java.lang.Object
org.springframework.boot.SpringApplication.Augmented
- 封闭类:
SpringApplication
Used to configure and run an augmented
SpringApplication where additional
configuration should be applied.- 从以下版本开始:
- 3.1.0
-
方法概要
修饰符和类型方法说明Run the application using the given args.Return a newSpringApplication.Augmentedinstance with additional sources that should be applied when the application runs.withAdditionalProfiles(String... profiles) Return a newSpringApplication.Augmentedinstance with additional profiles that should be applied when the application runs.
-
方法详细资料
-
with
Return a newSpringApplication.Augmentedinstance with additional sources that should be applied when the application runs.- 参数:
sources- the sources that should be applied- 返回:
- a new
SpringApplication.Augmentedinstance
-
withAdditionalProfiles
Return a newSpringApplication.Augmentedinstance with additional profiles that should be applied when the application runs.- 参数:
profiles- the profiles that should be applied- 返回:
- a new
SpringApplication.Augmentedinstance - 从以下版本开始:
- 3.4.0
-
run
Run the application using the given args.- 参数:
args- the main method args- 返回:
- the running
ApplicationContext
-