Class SimpleDiscoveryClientAutoConfiguration

java.lang.Object
org.springframework.cloud.client.discovery.simple.SimpleDiscoveryClientAutoConfiguration
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>

@Configuration(proxyBeanMethods=false) @AutoConfigureBefore(CommonsClientAutoConfiguration.class) public class SimpleDiscoveryClientAutoConfiguration extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
Spring Boot auto-configuration for simple properties-based discovery client.
Author:
Biju Kunjummen, Charu Covindane
  • Constructor Details

    • SimpleDiscoveryClientAutoConfiguration

      public SimpleDiscoveryClientAutoConfiguration()
  • Method Details

    • setServer

      @Autowired(required=false) public void setServer(org.springframework.boot.autoconfigure.web.ServerProperties server)
    • setInet

      @Autowired public void setInet(InetUtils inet)
    • simpleDiscoveryProperties

      @Bean @ConditionalOnMissingBean public SimpleDiscoveryProperties simpleDiscoveryProperties(@Value("${spring.application.name:application}") String serviceId)
    • simpleDiscoveryClient

      @Bean @Order public DiscoveryClient simpleDiscoveryClient(SimpleDiscoveryProperties properties)
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent webServerInitializedEvent)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>