add ability to disable config via properties

This commit is contained in:
Spencer Gibb
2015-06-18 14:38:51 -06:00
parent a66e7c2bfb
commit 90dfce5990
2 changed files with 1 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ import org.springframework.context.annotation.Import;
@Configuration
@Import(ConsulAutoConfiguration.class)
@EnableConfigurationProperties
@ConditionalOnProperty(name = "spring.cloud.consul.enabled", matchIfMissing = true)
@ConditionalOnProperty(name = "spring.cloud.consul.config.enabled", matchIfMissing = true)
public class ConsulConfigBootstrapConfiguration {
@Autowired

View File

@@ -1,11 +1,6 @@
server:
port: 8080
#TODO: figure out why I need this here and in bootstrap.yml
#spring:
# application:
# name: testConsulApp
ribbon:
ServerListRefreshInterval: 1000