From 76e7fd1f64a3f84246aa260b7a9a4fc872ff330f Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Tue, 10 Feb 2015 23:28:26 +0800 Subject: [PATCH] Update 24.2. Programmatically setting profiles.md --- .../24.2. Programmatically setting profiles.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IV. Spring Boot features/24.2. Programmatically setting profiles.md b/IV. Spring Boot features/24.2. Programmatically setting profiles.md index e69de29..fe11064 100644 --- a/IV. Spring Boot features/24.2. Programmatically setting profiles.md +++ b/IV. Spring Boot features/24.2. Programmatically setting profiles.md @@ -0,0 +1,3 @@ +### 24.2.以编程方式设置profiles + +在应用运行前,你可以通过调用SpringApplication.setAdditionalProfiles(…)方法,以编程的方式设置生效的配置。使用Spring的ConfigurableEnvironment接口激动配置也是可行的。