Skip to content

Commit 5d7b57c

Browse files
committed
Updated port and applicaiton context
1 parent dc14710 commit 5d7b57c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎spring-rest/src/main/java/com/baeldung/web/upload/client/MultipartFileUploadClient.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private static void uploadSingleFile() throws IOException {
3030

3131

3232
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers);
33-
String serverUrl = "http://localhost:8082/fileserver/singlefileupload/";
33+
String serverUrl = "http://localhost:8082/spring-rest/fileserver/singlefileupload/";
3434
RestTemplate restTemplate = new RestTemplate();
3535
ResponseEntity<String> response = restTemplate.postForEntity(serverUrl, requestEntity, String.class);
3636
System.out.println("Response code: " + response.getStatusCode());
@@ -46,7 +46,7 @@ private static void uploadMultipleFile() throws IOException {
4646
body.add("files", getTestFile());
4747

4848
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers);
49-
String serverUrl = "http://localhost:8082/fileserver/multiplefileupload/";
49+
String serverUrl = "http://localhost:8082/spring-rest/fileserver/multiplefileupload/";
5050
RestTemplate restTemplate = new RestTemplate();
5151
ResponseEntity<String> response = restTemplate.postForEntity(serverUrl, requestEntity, String.class);
5252
System.out.println("Response code: " + response.getStatusCode());

0 commit comments

Comments
 (0)