From f15eed6f02852ddce4059720dbd6903742e2c1b0 Mon Sep 17 00:00:00 2001 From: Adrian Pillinger Date: Sat, 24 Aug 2013 20:36:32 +0100 Subject: [PATCH] Fixing typo in the documentation that incorrectly named a property. The spring property should have been spring.profiles.active instead of spring.active.profiles. --- spring-boot/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/README.md b/spring-boot/README.md index 35cb6f8296d..ae76bd5261d 100644 --- a/spring-boot/README.md +++ b/spring-boot/README.md @@ -147,12 +147,12 @@ only available in certain environments. Any `@Component` that is marked with `@ will only be loaded in the profile specified by the latter annotation. A `SpringApplication` takes this a stage further, in that you can use a -`spring.active.profiles` `Environment` property to specify which profiles are active. +`spring.profiles.active` `Environment` property to specify which profiles are active. You can specify the property in any of the usual ways, for example you could include it in your `application.properties`: ``` -spring.active.profiles=dev,hsqldb +spring.profiles.active=dev,hsqldb ``` or specify on the command line using the switch `--spring.profiles.active=dev,hsqldb`.