Member
Response DTO, Request DTO 적용
실습 영상
Get
1.
[Controller] get 요청, service 호출
2.
[Service] repository 호출
3.
[Repository] entity 반환
4.
[Service] entity → Response DTO 변환 → 반환
5.
[Controller] Response DTO 반환
Post
1.
[Controller] post 요청, json → Request DTO 로 매핑 (프레임워크가 자동으로)
a.
매핑에 필요한 어노테이션이 무엇인지 왜 필요한지 찾아보고 정리해드릴게요.
2.
[Service] Request DTO → entity로 변환 → repository.save()에 entity 담아 호출
3.
[Repository] 저장 후 entity 반환.
4.
[Service] entity → Response DTO 변환 → 반환
5.
[Controller] Response DTO 반환
편집하려고 했는데 파일 확장자가 mkv라 iMovie에서 편집이 안되네요.
윈도우 프로그램으로 하면 되긴하는데… 그냥 올렸어요 ㅋㅋㅋㅋ
다음부터 mp4로 저장해서 편집해서 올려드릴게요 