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();