use of de.codecentric.boot.admin.discovery.ApplicationDiscoveryListener in project spring-boot-admin by codecentric.
the class DiscoveryClientConfiguration method applicationDiscoveryListener.
@Bean
@ConditionalOnMissingBean
@ConfigurationProperties(prefix = "spring.boot.admin.discovery")
public ApplicationDiscoveryListener applicationDiscoveryListener(ServiceInstanceConverter serviceInstanceConverter) {
ApplicationDiscoveryListener listener = new ApplicationDiscoveryListener(discoveryClient, registry);
listener.setConverter(serviceInstanceConverter);
return listener;
}
Aggregations