Commit 659a0802 authored by Christopher Cottier's avatar Christopher Cottier

Update ProductService.java to normalize product api points between methods.

parent a8fcb607
......@@ -11,7 +11,7 @@ import reactor.core.publisher.Flux;
@Service
public class ProductService {
public Mono<Product> getProductBySku(String sku){
return WebClient.create(String.format("http://localhost:8082/api/products/%s",sku))
return WebClient.create(String.format("http://localhost:8083/api/products/%s",sku))
.get()
.retrieve()
.bodyToMono(Product.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment