Updated port and applicaiton context

This commit is contained in:
micropatel 2018-07-11 23:11:56 -03:00
parent dc14710c35
commit 5d7b57c468
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class MultipartFileUploadClient {
HttpEntity<MultiValueMap<String, Object>> 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<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:8082/fileserver/multiplefileupload/";
String serverUrl = "http://localhost:8082/spring-rest/fileserver/multiplefileupload/";
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> response = restTemplate.postForEntity(serverUrl, requestEntity, String.class);
System.out.println("Response code: " + response.getStatusCode());