Browse Source

Merge branch '4.0.x'

pull/1241/head
Ryan Baxter 1 year ago
parent
commit
a51f56f47d
  1. 3
      spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapProperties.java
  2. 3
      spring-cloud-context/src/test/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinderIntegrationTests.java

3
spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapProperties.java

@ -42,7 +42,8 @@ public class PropertySourceBootstrapProperties {
/** /**
* Flag to indicate that when {@link #setAllowOverride(boolean) allowOverride} is * Flag to indicate that when {@link #setAllowOverride(boolean) allowOverride} is
* true, external properties should take lowest priority and should not override any * true, external properties should take lowest priority and should not override any
* existing property sources (including local config files). Default false. * existing property sources (including local config files). Default false. This will
* only have an effect when using config first bootstrap.
*/ */
private boolean overrideNone = false; private boolean overrideNone = false;

3
spring-cloud-context/src/test/java/org/springframework/cloud/context/properties/ConfigurationPropertiesRebinderIntegrationTests.java

@ -17,6 +17,7 @@
package org.springframework.cloud.context.properties; package org.springframework.cloud.context.properties;
import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInterceptor;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.framework.ProxyFactory;
@ -42,6 +43,8 @@ import static org.assertj.core.api.BDDAssertions.then;
@SpringBootTest(classes = TestConfiguration.class, properties = "spring.cloud.bootstrap.enabled=true") @SpringBootTest(classes = TestConfiguration.class, properties = "spring.cloud.bootstrap.enabled=true")
@ActiveProfiles("config") @ActiveProfiles("config")
// TODO: fix and enable back
@Disabled
public class ConfigurationPropertiesRebinderIntegrationTests { public class ConfigurationPropertiesRebinderIntegrationTests {
@Autowired @Autowired

Loading…
Cancel
Save