-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from dailylifev1/dm
#100 DAILYLIFE2-51 by dm
- Loading branch information
Showing
10 changed files
with
58 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.dailylife.global.init; | ||
|
||
import com.dailylife.domain.board.dto.BoardCreateRequest; | ||
import com.dailylife.domain.board.service.BoardService; | ||
import com.dailylife.domain.user.dto.UserJoinRequest; | ||
import com.dailylife.domain.user.entity.User; | ||
import com.dailylife.domain.user.repository.UserRepository; | ||
|
@@ -23,6 +25,8 @@ public class InitDB { | |
|
||
private final UserService userService; | ||
|
||
private final BoardService boardService; | ||
|
||
@PostConstruct | ||
public void initDB() throws IOException { | ||
if(ddlAutoConfig.equals("create")){ | ||
|
@@ -45,6 +49,7 @@ public void initDB() throws IOException { | |
.userName("dailyLife3") | ||
.userEmail("[email protected]").userJoinDate(LocalDateTime.now()).build(); | ||
|
||
|
||
userService.join(userReq1); | ||
userService.join(userReq2); | ||
userService.join(userReq3); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters