From 1588aa6b12496fd9a086ae90215726d3897fd69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B8=EC=A4=80?= <74056843+sejoon00@users.noreply.github.com> Date: Mon, 27 May 2024 21:37:28 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20fastapi=20port=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../review_note_maker/ReviewNoteMakerService.java | 5 ++--- .../textbook_preprocessing/service/PreprocessingService.java | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/Chaeda_spring/external_component/review_note_maker/ReviewNoteMakerService.java b/src/main/java/Chaeda_spring/external_component/review_note_maker/ReviewNoteMakerService.java index 0d95d0f..2958846 100644 --- a/src/main/java/Chaeda_spring/external_component/review_note_maker/ReviewNoteMakerService.java +++ b/src/main/java/Chaeda_spring/external_component/review_note_maker/ReviewNoteMakerService.java @@ -8,7 +8,6 @@ import org.springframework.http.HttpEntity; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; @@ -22,7 +21,6 @@ public class ReviewNoteMakerService { private final String serverUrl = UrlConstants.FASTAPI_SERVER_URL + "/review-note"; - @Async public CompletableFuture sendProblemInfoToPreprocessingServer(List request, String filename, Member member) { RestTemplate restTemplate = new RestTemplate(); @@ -31,8 +29,9 @@ public CompletableFuture sendProblemInfoToPreprocessingServer(List responseEntity = restTemplate.postForEntity(serverUrl, requestHttpEntity, Void.class); + log.info("fastapi로 pdf 생성 요청을 보냈습니다. 결과 : {}", responseEntity.getStatusCode()); if (responseEntity.getStatusCode() != HttpStatus.OK) { log.error("요청이 실패하였습니다. 응답 코드: {}", responseEntity.getStatusCode()); diff --git a/src/main/java/Chaeda_spring/external_component/textbook_preprocessing/service/PreprocessingService.java b/src/main/java/Chaeda_spring/external_component/textbook_preprocessing/service/PreprocessingService.java index f88acad..ab1e24d 100644 --- a/src/main/java/Chaeda_spring/external_component/textbook_preprocessing/service/PreprocessingService.java +++ b/src/main/java/Chaeda_spring/external_component/textbook_preprocessing/service/PreprocessingService.java @@ -6,7 +6,6 @@ import org.springframework.http.HttpEntity; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; -import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; @@ -23,7 +22,6 @@ public class PreprocessingService { * * @param filename 서버와 통신할 파일의 이름입니다. */ - @Async public CompletableFuture sendFilenameToPreprocessingServer(String filename) { RestTemplate restTemplate = new RestTemplate();