Skip to content

Commit

Permalink
add ability to disable config via properties
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Jun 18, 2015
1 parent a66e7c2 commit 90dfce5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@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
Expand Down
5 changes: 0 additions & 5 deletions spring-cloud-consul-sample/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 90dfce5

Please sign in to comment.