From 9d502b0194432ecaabb6df89c926b8bc08a1ab97 Mon Sep 17 00:00:00 2001 From: Wonjun Choi Date: Fri, 5 Jul 2024 09:09:18 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"[fix]=20repository=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=EC=9E=90=20=EC=A3=BC=EC=9E=85"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../umc/hackaton/snapspot/mypage/service/MypageService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/umc/hackaton/snapspot/mypage/service/MypageService.java b/src/main/java/com/umc/hackaton/snapspot/mypage/service/MypageService.java index b7da447..6c17b60 100644 --- a/src/main/java/com/umc/hackaton/snapspot/mypage/service/MypageService.java +++ b/src/main/java/com/umc/hackaton/snapspot/mypage/service/MypageService.java @@ -6,17 +6,15 @@ import com.umc.hackaton.snapspot.spot.repository.SpotRepository; import com.umc.hackaton.snapspot.user.entity.User; import com.umc.hackaton.snapspot.user.repository.UserRepository; -import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; import java.util.List; @Service -@RequiredArgsConstructor public class MypageService { - private final SpotRepository spotRepository; - private final UserRepository userRepository; + private SpotRepository spotRepository; + private UserRepository userRepository; public List readAllMySpot(Long userId) { User user = userRepository.findById(userId).orElseThrow(()-> new IllegalArgumentException("존재하지 않는 사용자입니다."));