From 5d7b57c46891604d75ed1e50d402914208ed3d17 Mon Sep 17 00:00:00 2001 From: micropatel Date: Wed, 11 Jul 2018 23:11:56 -0300 Subject: [PATCH] Updated port and applicaiton context --- .../baeldung/web/upload/client/MultipartFileUploadClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-rest/src/main/java/com/baeldung/web/upload/client/MultipartFileUploadClient.java b/spring-rest/src/main/java/com/baeldung/web/upload/client/MultipartFileUploadClient.java index c8c87d6ba8..547aec17a0 100644 --- a/spring-rest/src/main/java/com/baeldung/web/upload/client/MultipartFileUploadClient.java +++ b/spring-rest/src/main/java/com/baeldung/web/upload/client/MultipartFileUploadClient.java @@ -30,7 +30,7 @@ public class MultipartFileUploadClient { HttpEntity> requestEntity = new HttpEntity<>(body, headers); - String serverUrl = "http://localhost:8082/fileserver/singlefileupload/"; + String serverUrl = "http://localhost:8082/spring-rest/fileserver/singlefileupload/"; RestTemplate restTemplate = new RestTemplate(); ResponseEntity response = restTemplate.postForEntity(serverUrl, requestEntity, String.class); System.out.println("Response code: " + response.getStatusCode()); @@ -46,7 +46,7 @@ public class MultipartFileUploadClient { body.add("files", getTestFile()); HttpEntity> requestEntity = new HttpEntity<>(body, headers); - String serverUrl = "http://localhost:8082/fileserver/multiplefileupload/"; + String serverUrl = "http://localhost:8082/spring-rest/fileserver/multiplefileupload/"; RestTemplate restTemplate = new RestTemplate(); ResponseEntity response = restTemplate.postForEntity(serverUrl, requestEntity, String.class); System.out.println("Response code: " + response.getStatusCode());