|
|
@ -43,6 +43,8 @@ public class InvalidConfigDataPropertyException extends ConfigDataException {
|
|
|
|
Map<ConfigurationPropertyName, ConfigurationPropertyName> warnings = new LinkedHashMap<>();
|
|
|
|
Map<ConfigurationPropertyName, ConfigurationPropertyName> warnings = new LinkedHashMap<>();
|
|
|
|
warnings.put(ConfigurationPropertyName.of("spring.profiles"),
|
|
|
|
warnings.put(ConfigurationPropertyName.of("spring.profiles"),
|
|
|
|
ConfigurationPropertyName.of("spring.config.activate.on-profile"));
|
|
|
|
ConfigurationPropertyName.of("spring.config.activate.on-profile"));
|
|
|
|
|
|
|
|
warnings.put(ConfigurationPropertyName.of("spring.profiles[0]"),
|
|
|
|
|
|
|
|
ConfigurationPropertyName.of("spring.config.activate.on-profile"));
|
|
|
|
WARNINGS = Collections.unmodifiableMap(warnings);
|
|
|
|
WARNINGS = Collections.unmodifiableMap(warnings);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -50,8 +52,11 @@ public class InvalidConfigDataPropertyException extends ConfigDataException {
|
|
|
|
static {
|
|
|
|
static {
|
|
|
|
Set<ConfigurationPropertyName> errors = new LinkedHashSet<>();
|
|
|
|
Set<ConfigurationPropertyName> errors = new LinkedHashSet<>();
|
|
|
|
errors.add(Profiles.INCLUDE_PROFILES);
|
|
|
|
errors.add(Profiles.INCLUDE_PROFILES);
|
|
|
|
|
|
|
|
errors.add(Profiles.INCLUDE_PROFILES.append("[0]"));
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.ACTIVE_PROFILES_PROPERTY_NAME));
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.ACTIVE_PROFILES_PROPERTY_NAME));
|
|
|
|
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.ACTIVE_PROFILES_PROPERTY_NAME + "[0]"));
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.DEFAULT_PROFILES_PROPERTY_NAME));
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.DEFAULT_PROFILES_PROPERTY_NAME));
|
|
|
|
|
|
|
|
errors.add(ConfigurationPropertyName.of(AbstractEnvironment.DEFAULT_PROFILES_PROPERTY_NAME + "[0]"));
|
|
|
|
PROFILE_SPECIFIC_ERRORS = Collections.unmodifiableSet(errors);
|
|
|
|
PROFILE_SPECIFIC_ERRORS = Collections.unmodifiableSet(errors);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|