lombok is added

This commit is contained in:
병준 박 2019-07-20 18:21:14 +09:00
parent 191a6f4e75
commit f32e6bd3e8
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,6 @@ public class UserController {
@GetMapping(value = "/users") @GetMapping(value = "/users")
public Page<User> all(Pageable pageable) { public Page<User> all(Pageable pageable) {
return userRepository.findAll(pageable); return userRepository.findAll(pageable);
} }
@GetMapping(value = "/users/{userId}") @GetMapping(value = "/users/{userId}")

View File

@ -13,11 +13,13 @@ import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Builder;
import lombok.Data; import lombok.Data;
@Entity @Entity
@Table(name = "USER") @Table(name = "USER")
@Data @Data
@Builder
public class User implements Serializable { public class User implements Serializable {
private static final long serialVersionUID = 2783105197387637187L; private static final long serialVersionUID = 2783105197387637187L;