diff --git a/src/main/java/com/totopia/server/user/controller/UserController.java b/src/main/java/com/totopia/server/user/controller/UserController.java index e646580..5423b22 100644 --- a/src/main/java/com/totopia/server/user/controller/UserController.java +++ b/src/main/java/com/totopia/server/user/controller/UserController.java @@ -32,7 +32,6 @@ public class UserController { @GetMapping(value = "/users") public Page all(Pageable pageable) { return userRepository.findAll(pageable); - } @GetMapping(value = "/users/{userId}") diff --git a/src/main/java/com/totopia/server/user/model/User.java b/src/main/java/com/totopia/server/user/model/User.java index 2ac29c5..a0538cc 100644 --- a/src/main/java/com/totopia/server/user/model/User.java +++ b/src/main/java/com/totopia/server/user/model/User.java @@ -13,11 +13,13 @@ import javax.persistence.Table; import com.fasterxml.jackson.annotation.JsonIgnore; +import lombok.Builder; import lombok.Data; @Entity @Table(name = "USER") @Data +@Builder public class User implements Serializable { private static final long serialVersionUID = 2783105197387637187L;