@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(value=CommonsClientAutoConfiguration.class) public class SimpleDiscoveryClientAutoConfiguration extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
Constructor and Description |
---|
SimpleDiscoveryClientAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent) |
void |
setInet(InetUtils inet) |
void |
setServer(org.springframework.boot.autoconfigure.web.ServerProperties server) |
DiscoveryClient |
simpleDiscoveryClient(SimpleDiscoveryProperties properties) |
SimpleDiscoveryProperties |
simpleDiscoveryProperties(String serviceId) |
public SimpleDiscoveryClientAutoConfiguration()
@Autowired(required=false) public void setServer(org.springframework.boot.autoconfigure.web.ServerProperties server)
@Autowired public void setInet(InetUtils inet)
@Bean @ConditionalOnMissingBean public SimpleDiscoveryProperties simpleDiscoveryProperties(@Value(value="${spring.application.name:application}") String serviceId)
@Bean @Order public DiscoveryClient simpleDiscoveryClient(SimpleDiscoveryProperties properties)
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.