From ee4721d85fbb99fec0e68538a9fdf8268b48b021 Mon Sep 17 00:00:00 2001 From: kang Date: Tue, 5 Nov 2024 17:55:08 +0900 Subject: [PATCH] fix: resolve xircular reference --- src/main/java/co/orange/ddanzi/service/MyPageService.java | 6 ++---- src/main/java/co/orange/ddanzi/service/PaymentService.java | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/co/orange/ddanzi/service/MyPageService.java b/src/main/java/co/orange/ddanzi/service/MyPageService.java index a928906..480da325 100644 --- a/src/main/java/co/orange/ddanzi/service/MyPageService.java +++ b/src/main/java/co/orange/ddanzi/service/MyPageService.java @@ -26,10 +26,8 @@ public class MyPageService { private final HomeService homeService; private final InterestProductRepository interestProductRepository; - @Autowired - OrderService orderService; - @Autowired - ItemService itemService; + private final OrderService orderService; + private final ItemService itemService; @Transactional public ApiResponse getMyPage(){ diff --git a/src/main/java/co/orange/ddanzi/service/PaymentService.java b/src/main/java/co/orange/ddanzi/service/PaymentService.java index 139f2ee..2065881 100644 --- a/src/main/java/co/orange/ddanzi/service/PaymentService.java +++ b/src/main/java/co/orange/ddanzi/service/PaymentService.java @@ -51,7 +51,6 @@ public class PaymentService { private final HistoryService historyService; private final FcmService fcmService; private final ProductService productService; - private final ItemService itemService; @Value("${ddanzi.portone.access-key}") private String accessKey;