File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
org.springframework.beans/src/main/resources/org/springframework/beans/factory/xml
org.springframework.context/src/main/java/org/springframework/context/annotation
org.springframework.core/src/main/java/org/springframework/core/env Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 94
94
ConfigurableEnvironment#setDefaultProfiles(String...)
95
95
96
96
Properties (typically through -D system properties, environment variables, or servlet context init params):
97
- spring.profile .active=p1,p2
98
- spring.profile .default=p1,p2
97
+ spring.profiles .active=p1,p2
98
+ spring.profiles .default=p1,p2
99
99
]]> </xsd : documentation >
100
100
</xsd : annotation >
101
101
</xsd : attribute >
Original file line number Diff line number Diff line change 30
30
*
31
31
* <p>A <em>profile</em> is a named logical grouping that may be activated programatically via
32
32
* {@link ConfigurableEnvironment#setActiveProfiles} or declaratively through setting the
33
- * {@link AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME spring.profile .active} property,
33
+ * {@link AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME spring.profiles .active} property,
34
34
* usually through JVM system properties, as an environment variable, or for web applications
35
35
* as a Servlet context parameter in {@code web.xml}.
36
36
*
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
45
45
* Name of property to set to specify active profiles: {@value}. May be comma delimited.
46
46
* @see ConfigurableEnvironment#setActiveProfiles
47
47
*/
48
- public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profile .active" ;
48
+ public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles .active" ;
49
49
50
50
/**
51
51
* Name of property to set to specify default profiles: {@value}. May be comma delimited.
52
52
* @see ConfigurableEnvironment#setDefaultProfiles
53
53
*/
54
- public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profile .default" ;
54
+ public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profiles .default" ;
55
55
56
56
protected final Log logger = LogFactory .getLog (getClass ());
57
57
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public interface Environment extends PropertyResolver {
69
69
* Return the set of profiles explicitly made active for this environment. Profiles are used for
70
70
* creating logical groupings of bean definitions to be registered conditionally, often based on
71
71
* deployment environment. Profiles can be activated by setting {@linkplain
72
- * AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profile .active"} as a system property
72
+ * AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profiles .active"} as a system property
73
73
* or by calling {@link ConfigurableEnvironment#setActiveProfiles(String...)}.
74
74
*
75
75
* <p>If no profiles have explicitly been specified as active, then any 'default' profiles will implicitly
You can’t perform that action at this time.
0 commit comments