Rename spring.{profile}.active => {profiles}
Same for spring.profiles.default
This commit is contained in:
@@ -45,13 +45,13 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
|
||||
* Name of property to set to specify active profiles: {@value}. May be comma delimited.
|
||||
* @see ConfigurableEnvironment#setActiveProfiles
|
||||
*/
|
||||
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profile.active";
|
||||
public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles.active";
|
||||
|
||||
/**
|
||||
* Name of property to set to specify default profiles: {@value}. May be comma delimited.
|
||||
* @see ConfigurableEnvironment#setDefaultProfiles
|
||||
*/
|
||||
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profile.default";
|
||||
public static final String DEFAULT_PROFILES_PROPERTY_NAME = "spring.profiles.default";
|
||||
|
||||
protected final Log logger = LogFactory.getLog(getClass());
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ public interface Environment extends PropertyResolver {
|
||||
* Return the set of profiles explicitly made active for this environment. Profiles are used for
|
||||
* creating logical groupings of bean definitions to be registered conditionally, often based on
|
||||
* deployment environment. Profiles can be activated by setting {@linkplain
|
||||
* AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profile.active"} as a system property
|
||||
* AbstractEnvironment#ACTIVE_PROFILES_PROPERTY_NAME "spring.profiles.active"} as a system property
|
||||
* or by calling {@link ConfigurableEnvironment#setActiveProfiles(String...)}.
|
||||
*
|
||||
* <p>If no profiles have explicitly been specified as active, then any 'default' profiles will implicitly
|
||||
|
||||
Reference in New Issue
Block a user