From 25523606747f8f16fcc0dba98c511b13d4404d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=88=98=EB=AF=BC?= Date: Mon, 18 Dec 2023 11:30:47 +0900 Subject: [PATCH 1/3] Test: Join --- .../main/java/com/example/demo/controller/UserController.java | 2 ++ Backend/src/main/java/com/example/demo/service/UserService.java | 1 + 2 files changed, 3 insertions(+) diff --git a/Backend/src/main/java/com/example/demo/controller/UserController.java b/Backend/src/main/java/com/example/demo/controller/UserController.java index cb87d09..f0b0a0b 100644 --- a/Backend/src/main/java/com/example/demo/controller/UserController.java +++ b/Backend/src/main/java/com/example/demo/controller/UserController.java @@ -38,8 +38,10 @@ public class UserController { // 회원가입 @PostMapping("/user/join") public AdminResponse insert(@RequestBody JoinDTO joinDTO){ + System.out.println("구간1"); User saved_user = userService.join(joinDTO); + Long id = saved_user.getId(); CommonResponse commonResponse = new CommonResponse(); diff --git a/Backend/src/main/java/com/example/demo/service/UserService.java b/Backend/src/main/java/com/example/demo/service/UserService.java index be38c3e..ce94caa 100644 --- a/Backend/src/main/java/com/example/demo/service/UserService.java +++ b/Backend/src/main/java/com/example/demo/service/UserService.java @@ -33,6 +33,7 @@ public UserService(@Qualifier("userRepository")UserRepository user_rp, } public User join(JoinDTO joinDTO){ + System.out.println("구간2"); User user = new User(); user.setEmail(joinDTO.getEmail()); user.setIntroduce(joinDTO.getIntroduce()); From be4deeccebccbcb667090a3007430c8690922ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=88=98=EB=AF=BC?= Date: Mon, 18 Dec 2023 11:39:33 +0900 Subject: [PATCH 2/3] Test: Join --- .../java/com/example/demo/controller/UserController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Backend/src/main/java/com/example/demo/controller/UserController.java b/Backend/src/main/java/com/example/demo/controller/UserController.java index f0b0a0b..9c3795f 100644 --- a/Backend/src/main/java/com/example/demo/controller/UserController.java +++ b/Backend/src/main/java/com/example/demo/controller/UserController.java @@ -39,6 +39,11 @@ public class UserController { @PostMapping("/user/join") public AdminResponse insert(@RequestBody JoinDTO joinDTO){ System.out.println("구간1"); + System.out.println(joinDTO.getPassword()); + System.out.println(joinDTO.getNickname()); + System.out.println(joinDTO.getIntroduce()); + System.out.println(joinDTO.getGitId()); + System.out.println(joinDTO.getEmail()); User saved_user = userService.join(joinDTO); From d8a3f8d7da9123e3769f9b9535317d2982a47fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=88=98=EB=AF=BC?= Date: Mon, 18 Dec 2023 11:46:46 +0900 Subject: [PATCH 3/3] Test: Join --- .../main/java/com/example/demo/controller/UserController.java | 2 +- Backend/src/main/java/com/example/demo/dto/JoinDTO.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/src/main/java/com/example/demo/controller/UserController.java b/Backend/src/main/java/com/example/demo/controller/UserController.java index 9c3795f..3b1918b 100644 --- a/Backend/src/main/java/com/example/demo/controller/UserController.java +++ b/Backend/src/main/java/com/example/demo/controller/UserController.java @@ -42,7 +42,7 @@ public AdminResponse insert(@RequestBody JoinDTO joinDTO){ System.out.println(joinDTO.getPassword()); System.out.println(joinDTO.getNickname()); System.out.println(joinDTO.getIntroduce()); - System.out.println(joinDTO.getGitId()); + System.out.println(joinDTO.getGitid()); System.out.println(joinDTO.getEmail()); User saved_user = userService.join(joinDTO); diff --git a/Backend/src/main/java/com/example/demo/dto/JoinDTO.java b/Backend/src/main/java/com/example/demo/dto/JoinDTO.java index dff0a52..b940a2a 100644 --- a/Backend/src/main/java/com/example/demo/dto/JoinDTO.java +++ b/Backend/src/main/java/com/example/demo/dto/JoinDTO.java @@ -10,5 +10,5 @@ public class JoinDTO { private String password; private String nickname; private String introduce; - private String gitId; + private String gitid; }