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 37e671c commit 3a33a23Copy full SHA for 3a33a23
src/main/java/com/backend/global/initdata/BaseInitData.java
@@ -44,7 +44,8 @@
44
import java.util.List;
45
import java.util.concurrent.ThreadLocalRandom;
46
47
-@Profile("dev")
+//@Profile("dev")
48
+@Profile("!test")
49
@Component
50
@RequiredArgsConstructor
51
public class BaseInitData {
@@ -77,9 +78,9 @@ ApplicationRunner baseInitDataApplicationRunner() {
77
78
@Transactional
79
public void work1() {
80
// 이미 데이터가 있으면 건너뛰기
- if (memberRepository.count() > 0) {
81
- return;
82
- }
+// if (memberRepository.count() > 0) {
+// return;
83
+// }
84
85
// ========== 1. 회원 생성 (10명) ==========
86
List<Member> members = createMembers();
0 commit comments