diff --git a/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminMainPageController.java b/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminMainPageController.java index 824b3b39..670014bf 100644 --- a/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminMainPageController.java +++ b/src/main/java/com/softeer/backend/bo_domain/admin/controller/AdminMainPageController.java @@ -1,7 +1,7 @@ package com.softeer.backend.bo_domain.admin.controller; import com.softeer.backend.bo_domain.admin.dto.main.MainPageResponseDto; -import com.softeer.backend.bo_domain.admin.service.MainPageService; +import com.softeer.backend.bo_domain.admin.service.AdminMainPageService; import com.softeer.backend.global.common.response.ResponseDto; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; @@ -12,11 +12,11 @@ @RequiredArgsConstructor @RequestMapping("/admin") public class AdminMainPageController { - private final MainPageService mainPageService; + private final AdminMainPageService adminMainPageService; @GetMapping("/main") public ResponseDto getMainPage() { - MainPageResponseDto mainPageResponseDto = mainPageService.getMainPage(); + MainPageResponseDto mainPageResponseDto = adminMainPageService.getMainPage(); return ResponseDto.onSuccess(mainPageResponseDto); } diff --git a/src/main/java/com/softeer/backend/bo_domain/admin/service/MainPageService.java b/src/main/java/com/softeer/backend/bo_domain/admin/service/AdminMainPageService.java similarity index 96% rename from src/main/java/com/softeer/backend/bo_domain/admin/service/MainPageService.java rename to src/main/java/com/softeer/backend/bo_domain/admin/service/AdminMainPageService.java index 5ddccb36..e78c484e 100644 --- a/src/main/java/com/softeer/backend/bo_domain/admin/service/MainPageService.java +++ b/src/main/java/com/softeer/backend/bo_domain/admin/service/AdminMainPageService.java @@ -14,7 +14,7 @@ @Service @RequiredArgsConstructor -public class MainPageService { +public class AdminMainPageService { private final FcfsSettingRepository fcfsSettingRepository; private final DrawSettingRepository drawSettingRepository; diff --git a/src/main/java/com/softeer/backend/global/staticresources/util/StaticResourcesUtil.java b/src/main/java/com/softeer/backend/global/staticresources/util/StaticResourcesUtil.java index 3a9c2456..22705b8e 100644 --- a/src/main/java/com/softeer/backend/global/staticresources/util/StaticResourcesUtil.java +++ b/src/main/java/com/softeer/backend/global/staticresources/util/StaticResourcesUtil.java @@ -18,7 +18,7 @@ public class StaticResourcesUtil { private final StaticResourcesRepository staticResourcesRepository; - private Map s3Urls; + private final Map s3Urls = new HashMap<>(); @PostConstruct public void init() {