We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78f64ce commit c2719d7Copy full SHA for c2719d7
src/main/java/com/back/global/init/DevInitData.java
@@ -58,18 +58,6 @@ ApplicationRunner devInitDataApplicationRunner() {
58
};
59
}
60
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
73
@Transactional
74
public void userInit() {
75
userRepository.findByNickname("사용자A").orElseGet(() ->
0 commit comments