@@ -0,0 +1,1110 @@
+package pl.java.scalatech.sample;%0A%0Aimport org.springframework.boot.CommandLineRunner;%0Aimport org.springframework.cloud.client.ServiceInstance;%0Aimport org.springframework.cloud.client.discovery.DiscoveryClient;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport lombok.RequiredArgsConstructor;%0Aimport lombok.extern.slf4j.Slf4j;%0A%0A@Component%0A@RequiredArgsConstructor%0A@Slf4j%0Apublic class DiscoveryClientLogger implements CommandLineRunner%7B%0A%0A    private final DiscoveryClient discoveryClient;%0A%0A    @Override%0A    public void run(String... args) throws Exception %7B%0A        System.out.println(discoveryClient.description());%0A        %0A             discoveryClient.getInstances(%22car-service%22).forEach((ServiceInstance serviceInstance) -%3E %7B%0A                 System.out.println(new StringBuilder(%22Instance --%3E %22).append(serviceInstance.getServiceId())%0A                         .append(%22%5CnServer: %22).append(serviceInstance.getHost()).append(%22:%22).append(serviceInstance.getPort())%0A                         .append(%22%5CnURI: %22).append(serviceInstance.getUri()).append(%22%5Cn%5Cn%5Cn%22));%0A             %7D);%0A         %7D%0A    %0A    %0A%7D%0A%0A

Create DiscoveryClientLogger.java