These are chat archives for spring-cloud/spring-cloud
I am creating event handler class which implement ApplicationListener
Earlier i was using discoveryClient.getDiscoveryServiceUrls(DISCOVERY_CLIENT_ZONE) to achive this. As this is deprecated i am using EndpointUtils.getDiscoveryServiceUrls like below
final List<String> discoveryUrls = EndpointUtils.getDiscoveryServiceUrls(config, DISCOVERY_CLIENT_ZONE,randomizer);
but somehow i am getting null value in applicationInfoManager.
Is there any way to solve this problem?
ApplicationInfoManageris "special". You can't autowire it into anything that needs to be initialized early (like an event listener).
level=WARN class=ConfigurationPropertiesBindingPost Processor The @ConfigurationProperties bean class org.springframework.cloud.consul.config.ConsulConfigProperties contains validation constraints but had n ot been annotated with @Validated.