Skip to content

Commit c2719d7

Browse files
committed
fix : bug
1 parent 78f64ce commit c2719d7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ ApplicationRunner devInitDataApplicationRunner() {
5858
};
5959
}
6060

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

0 commit comments

Comments
 (0)