From dc14710c35059f9d146bb99f34606e2e0c5c1e0f Mon Sep 17 00:00:00 2001 From: micropatel <31759369+micropatel@users.noreply.github.com> Date: Wed, 11 Jul 2018 18:27:40 -0300 Subject: [PATCH] Updated port number --- .../web/upload/client/MultipartFileUploadClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 0e9f95ad33..c8c87d6ba8 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:8080/fileserver/singlefileupload/"; + String serverUrl = "http://localhost:8082/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:8080/fileserver/multiplefileupload/"; + String serverUrl = "http://localhost:8082/fileserver/multiplefileupload/"; RestTemplate restTemplate = new RestTemplate(); ResponseEntity response = restTemplate.postForEntity(serverUrl, requestEntity, String.class); System.out.println("Response code: " + response.getStatusCode()); @@ -58,4 +58,4 @@ public class MultipartFileUploadClient { Files.write(testFile, "Hello World !!, This is a test file.".getBytes()); return new FileSystemResource(testFile.toFile()); } -} \ No newline at end of file +}