From 33eaee979d77b1d4b3ed5fee4c0693271a6c7000 Mon Sep 17 00:00:00 2001 From: sycuuui <102959791+sycuuui@users.noreply.github.com> Date: Wed, 17 Apr 2024 21:09:43 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20flask=20url=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/domain/video/service/VideoService.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/capic/server/domain/video/service/VideoService.java b/src/main/java/com/capic/server/domain/video/service/VideoService.java index 76f3de6..94a6124 100644 --- a/src/main/java/com/capic/server/domain/video/service/VideoService.java +++ b/src/main/java/com/capic/server/domain/video/service/VideoService.java @@ -33,8 +33,6 @@ @Transactional @RequiredArgsConstructor public class VideoService { - @Value("${cloud.flask.url}") - private String baseUrl; private final S3Client s3Client; // public VideoRes createFolder(){ @@ -68,7 +66,7 @@ public String getFilename() { RestTemplate restTemplate = new RestTemplate(); - String url = "http://127.0.0.1:5000/video"; + String url = "http://13.124.110.226:5000/video"; ResponseEntity response = restTemplate.postForEntity(url, requestEntity, byte[].class); @@ -97,7 +95,7 @@ public String getFilename() { RestTemplate restTemplate = new RestTemplate(); - String url = "http://127.0.0.1:5000/video"; + String url = "http://13.124.110.226:5000/video"; ResponseEntity response = restTemplate.postForEntity(url, requestEntity, byte[].class); @@ -177,7 +175,7 @@ public String getFilename() { // Flask 서버로 요청 보내기 RestTemplate restTemplate = new RestTemplate(); - String url = baseUrl+"/video"; // Flask 서버 URL + String url = "http://13.124.110.226:5000/video"; // Flask 서버 URL ResponseEntity response = restTemplate.postForEntity(url, requestEntity, byte[].class); // Flask에서 반환된 파일을 다시 클라이언트에게 반환 @@ -233,7 +231,7 @@ public String getFilename() { // Flask 서버로 요청 보내기 RestTemplate restTemplate = new RestTemplate(); - String url = baseUrl+"/video"; // Flask 서버 URL + String url = "http://13.124.110.226:5000/video"; // Flask 서버 URL ResponseEntity response = restTemplate.postForEntity(url, requestEntity, byte[].class); // Flask에서 반환된 파일을 다시 클라이언트에게 반환