File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
domain/cocktail/controller Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 (() ->
You can’t perform that action at this time.
0 commit comments