Use dot notation rather than camel case for profile props (SPR-7508)

Before this change, the following properties could be used to manipulate
Spring profile behavior:

    -DspringProfiles=p1,p2
    -DdefaultSpringProfile=pD

These properties have been renamed to follow usual Java conventions for
property naming:

    -Dspring.profile.active=p1,p2
    -Dspring.profile.default=pD
This commit is contained in:
Chris Beams
2010-12-05 20:14:26 +00:00
parent 5062dc31af
commit e0c5ced695
3 changed files with 10 additions and 8 deletions

View File

@@ -30,9 +30,9 @@ import java.lang.annotation.Target;
* @Profile("default") means that beans will be registered unless other profile(s) are active
* @Profile({"xyz,default"}) means that beans will be registered if 'xyz' is active or if no profile is active
* ConfigurableEnvironment.setDefaultProfileName(String) customizes the name of the default profile
* 'defaultSpringProfile' property customizes the name of the default profile (usually for use as a servlet context/init param)
* 'spring.profile.default' property customizes the name of the default profile (usually for use as a servlet context/init param)
* ConfigurableEnvironment.setActiveProfiles(String...) sets which profiles are active
* 'springProfiles' sets which profiles are active (typically as a -D system property)
* 'spring.profile.active' sets which profiles are active (typically as a -D system property)
*
* @author Chris Beams
* @since 3.1