Skip to content

Commit 3c71fc0

Browse files
committed
fix : bug
1 parent 6ac1670 commit 3c71fc0

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/main/java/com/back/domain/cocktail/controller/CocktailRecommendController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class CocktailRecommendController {
2121

2222
private final RecommendService recommendService;
2323

24-
// 상세페이지 추천 (DTO로 반환)
24+
// 상세페이지 3개 칵테일 추천 (DTO로 반환)
2525
@Operation(summary = "상세페이지 유사 칵테일 추천", description = "현재 칵테일과 유사한 칵테일 최대 3개를 반환합니다.")
2626
@GetMapping("/related")
2727
public RsData<List<CocktailRecommendResponseDto>> recommendRelated(@RequestParam Long cocktailId) {

src/main/java/com/back/global/init/DevInitData.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ ApplicationRunner devInitDataApplicationRunner() {
5555
};
5656
}
5757

58-
@Transactional
59-
public void cocktailInit() throws Exception {
60-
// H2 DB에 이미 데이터가 들어가 있는지 확인
61-
if (cocktailRepository.count() > 0) {
62-
System.out.println("Cocktail 데이터가 이미 존재합니다.");
63-
return;
64-
}
65-
66-
// data-h2.sql에서 자동 삽입되므로 여기서는 추가하지 않음.
67-
System.out.println("Cocktail 초기화: CSV에서 데이터를 이미 로드합니다.");
68-
}
69-
7058
@Transactional
7159
public void userInit() {
7260
userRepository.findByNickname("사용자A").orElseGet(() ->

0 commit comments

Comments
 (0)