@ConditionalOnProperty(value="spring.cloud.config.discovery.enabled",
matchIfMissing=false)
@Configuration
@Import(value=org.springframework.cloud.commons.util.UtilAutoConfiguration.class)
@EnableDiscoveryClient
public class DiscoveryClientConfigServiceBootstrapConfiguration
extends Object
| Constructor and Description |
|---|
DiscoveryClientConfigServiceBootstrapConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConfigServerInstanceProvider |
configServerInstanceProvider(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient) |
void |
heartbeat(org.springframework.cloud.client.discovery.event.HeartbeatEvent event) |
void |
startup(org.springframework.context.event.ContextRefreshedEvent event) |
public DiscoveryClientConfigServiceBootstrapConfiguration()
@Bean public ConfigServerInstanceProvider configServerInstanceProvider(org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient)
@EventListener(value=org.springframework.context.event.ContextRefreshedEvent.class) public void startup(org.springframework.context.event.ContextRefreshedEvent event)
@EventListener(value=org.springframework.cloud.client.discovery.event.HeartbeatEvent.class) public void heartbeat(org.springframework.cloud.client.discovery.event.HeartbeatEvent event)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.