From 52d3d6dfd2da5b98baeb8ddfdbf00616df426d9e Mon Sep 17 00:00:00 2001 From: kimsuyeondev Date: Tue, 25 Jun 2024 02:25:41 +0900 Subject: [PATCH] #37 CompletableFuture,Async --- .../main/java/com/cosmetics/api/controller/GoodsController.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/module-api/src/main/java/com/cosmetics/api/controller/GoodsController.java b/module-api/src/main/java/com/cosmetics/api/controller/GoodsController.java index 154f4dd..7a25596 100644 --- a/module-api/src/main/java/com/cosmetics/api/controller/GoodsController.java +++ b/module-api/src/main/java/com/cosmetics/api/controller/GoodsController.java @@ -22,7 +22,6 @@ public class GoodsController { private final GoodsService goodsService; - private final AsyncService asyncService; private final SmsService smsService; @GetMapping(value = "/{goodsNo}") @@ -65,7 +64,6 @@ public CompletableFuture registerGoods(@RequestBody @Va //등록에 성공하면 메세지를 보낸다고 가정 if ("0000".equals(goodsResponseFuture.get().getResultCode())) { - smsService.smsMessage(goodsResponseFuture.get().getGoodsNo()); //Cosmetics-Thread-Pool1 } return goodsResponseFuture;