Skip to content

Commit c506300

Browse files
committed
Rename spring.{profile}.active => {profiles}
Same for spring.profiles.default
1 parent a2bc381 commit c506300

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

org.springframework.beans/src/main/resources/org/springframework/beans/factory/xml/spring-beans-3.1.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
ConfigurableEnvironment#setDefaultProfiles(String...)
9595
9696
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
9999
]]></xsd:documentation>
100100
</xsd:annotation>
101101
</xsd:attribute>

org.springframework.context/src/main/java/org/springframework/context/annotation/Profile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
* <p>A <em>profile</em> is a named logical grouping that may be activated programatically via
3232
* {@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,
3434
* usually through JVM system properties, as an environment variable, or for web applications
3535
* as a Servlet context parameter in {@code web.xml}.
3636
*

org.springframework.core/src/main/java/org/springframework/core/env/AbstractEnvironment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
4545
* Name of property to set to specify active profiles: {@value}. May be comma delimited.
4646
* @see ConfigurableEnvironment#setActiveProfiles
4747
*/
48-
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profile.active";
48+
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles.active";
4949

5050
/**
5151
* Name of property to set to specify default profiles: {@value}. May be comma delimited.
5252
* @see ConfigurableEnvironment#setDefaultProfiles
5353
*/
54-
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profile.default";
54+
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profiles.default";
5555

5656
protected final Log logger = LogFactory.getLog(getClass());
5757

org.springframework.core/src/main/java/org/springframework/core/env/Environment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public interface Environment extends PropertyResolver {
6969
* Return the set of profiles explicitly made active for this environment. Profiles are used for
7070
* creating logical groupings of bean definitions to be registered conditionally, often based on
7171
* 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
7373
* or by calling {@link ConfigurableEnvironment#setActiveProfiles(String...)}.
7474
*
7575
* <p>If no profiles have explicitly been specified as active, then any 'default' profiles will implicitly

0 commit comments

Comments
 (0)