JPA 활용 - 엔티티 매핑 대신 DTO를 사용하는 이유
·
Back-End/JPA
엔티티를 Request Body에 직접 매핑하는 경우 import jpabook.jpashop.domain.Member; import jpabook.jpashop.service.MemberService; import lombok.Data; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; @RestContro..