Updated port number

This commit is contained in:
micropatel 2018-07-11 18:27:40 -03:00 committed by GitHub
parent 1c03ee9c42
commit dc14710c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class MultipartFileUploadClient {
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers);
String serverUrl = "http://localhost:8080/fileserver/singlefileupload/";
String serverUrl = "http://localhost:8082/fileserver/singlefileupload/";
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> 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<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers);
String serverUrl = "http://localhost:8080/fileserver/multiplefileupload/";
String serverUrl = "http://localhost:8082/fileserver/multiplefileupload/";
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> 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());
}
}
}