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