diff --git a/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/clients/BuscadorClient.java b/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/clients/BuscadorClient.java index 16270e4..a0d1153 100644 --- a/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/clients/BuscadorClient.java +++ b/src/main/java/net/unir/missi/desarrollowebfullstack/bookabook/operador/clients/BuscadorClient.java @@ -10,7 +10,7 @@ import java.util.List; import java.util.Map; -@FeignClient("BUSCADOR") +@FeignClient(name = "BUSCADOR", configuration = FeignConfig.class, url = "http://lcoalhost:8081") public interface BuscadorClient { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index cd90916..f7d51c3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -62,6 +62,9 @@ springdoc.swagger-ui.path=/swagger-ui.html spring.application.name=operador # URL of the Eureka service eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://localhost:8761/eureka} +eureka.client.fetch-registry=true +eureka.instance.prefer-ip-address=true + # Use IP address #eureka.instance.preferIpAddress=true #eureka.client.register-with-eureka=false