File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
org.springframework.core/src/main/java/org/springframework/core/env Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 53
53
public abstract class AbstractEnvironment implements ConfigurableEnvironment {
54
54
55
55
/**
56
- * Name of property to set to specify active profiles: {@value}. May be comma delimited.
56
+ * Name of property to set to specify active profiles: {@value}. Value may be comma
57
+ * delimited.
58
+ * <p>Note that certain shell environments such as Bash disallow the use of the period
59
+ * character in variable names. Assuming that Spring's {@link SystemEnvironmentPropertySource}
60
+ * is in use, this property may be specified as an environment variable as
61
+ * {@code SPRING_PROFILES_ACTIVE}.
57
62
* @see ConfigurableEnvironment#setActiveProfiles
58
63
*/
59
64
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles.active" ;
60
65
61
66
/**
62
- * Name of property to set to specify default profiles: {@value}. May be comma delimited.
67
+ * Name of property to set to specify profiles active by default: {@value}. Value may
68
+ * be comma delimited.
69
+ * <p>Note that certain shell environments such as Bash disallow the use of the period
70
+ * character in variable names. Assuming that Spring's {@link SystemEnvironmentPropertySource}
71
+ * is in use, this property may be specified as an environment variable as
72
+ * {@code SPRING_PROFILES_DEFAULT}.
63
73
* @see ConfigurableEnvironment#setDefaultProfiles
64
74
*/
65
75
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profiles.default" ;
Original file line number Diff line number Diff line change 41
41
* instance available from {@link #getPropertySources()}. See
42
42
* {@link ConfigurableEnvironment} Javadoc for usage examples.
43
43
*
44
+ * <p>See {@link SystemEnvironmentPropertySource} Javadoc for details on special handling
45
+ * of property names in shell environments (e.g. Bash) that disallow period characters in
46
+ * variable names.
47
+ *
44
48
* @author Chris Beams
45
49
* @since 3.1
46
50
* @see ConfigurableEnvironment
You can’t perform that action at this time.
0 commit comments