From 27bbbd833588c069d1b7af8d9548a35c548c4323 Mon Sep 17 00:00:00 2001 From: protopapa Date: Sun, 26 Jun 2016 14:57:27 +0200 Subject: [PATCH] fix bug --- .../aggregator/microservices/ProductInformationClientImpl.java | 2 ++ .../aggregator/microservices/ProductInventoryClientImpl.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInformationClientImpl.java b/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInformationClientImpl.java index 580875c12..1c5c1527c 100644 --- a/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInformationClientImpl.java +++ b/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInformationClientImpl.java @@ -27,12 +27,14 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; +import org.springframework.stereotype.Component; import java.io.IOException; /** * An adapter to communicate with information micro-service. */ +@Component public class ProductInformationClientImpl implements ProductInformationClient { @Override diff --git a/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInventoryClientImpl.java b/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInventoryClientImpl.java index e399fb836..14d0a32c4 100644 --- a/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInventoryClientImpl.java +++ b/aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/ProductInventoryClientImpl.java @@ -27,12 +27,14 @@ import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClients; import org.apache.http.util.EntityUtils; +import org.springframework.stereotype.Component; import java.io.IOException; /** * An adapter to communicate with inventory micro-service. */ +@Component public class ProductInventoryClientImpl implements ProductInventoryClient { @Override