[5주차] 황지영 / [feat] 미구현 API 구현+리팩토링 #75
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1. 무슨 이유로 코드를 변경했나요?
2. 어떤 위험이나 장애를 발견했나요?
@GetUserId aop에서는 userId의 유무만 검증을 했는데 cookie에 저장된 userId로만 검증을 하면 보안 위험이 있는 것 같아서 본인인지 검증하는 로직을 또 추가해야하는지(token 검증) 궁금합니다..!
마이페이지를 수정할 때 기존 instance를 수정하는것이 아니라 새로운 인스턴스를 생성하는 바람에 db에 업데이트가 되지 않았습니다->request를 바로 넘겨줘서 해결하긴 했는데 원래는 도메인으로 바꿔서 repository에 넘겨줘야하는 것이 아닌지..의문입니다
중복되는 코드를 사용할때 어떤 걸 Util로 빼야하는지 service로 빼야하는지 잘모르겠습니당 그리고 static을 필요할 때 사용해도 되는지? 궁금해요
타입을 Long에서 long으로 변경하니 불변 필드로 설정하기 위해 final을 추천해주던데(인텔리제이에서)
초기화된 후 변경되지 않는다면 final을 쓰는게 좋다고 하는데 jpa에선 문제가 될 수 있다고 하는데 어떻게 생각하시는지 궁금합니당
3. 관련 스크린샷을 첨부해주세요.
마이페이지 조회

마이페이지 수정

회원 탈퇴

4. 완료 사항
5. 추가 사항
closed #73