[Lendo] Chapter 7. API 응답 통일 & 에러 핸들러#20
Open
dongchan0105 wants to merge 6 commits intoLendo/mainfrom
Open
Conversation
jjin70
approved these changes
Nov 19, 2025
Member
jjin70
left a comment
There was a problem hiding this comment.
커밋을 세세하게 나눠서 해서 보기 좋은 것 같습니다~! 예외 처리도 더 추가한 것두 좋습니다
controller단에서 ResponseEntity를 사용하셨는데 응답 형식 통일이 되었기 때문에 상태 코드 지정을 위한 게 아니라면 생략해도 괜찮을 것 같다는 점만 참고해주시면 될 것 같습니다
- MethodArgumentNotValidException
- ConstraintViolationException
- MethodArgumentTypeMismatchException
- HttpMessageNotReadableException 등등 ..
추가적으로 위와 같은 예외도 처리하면 좋을 것 같아서 살짝.. 알려드립니다
응답 통일을 하면 프론트엔드와 소통도 편해지고, 예외 처리를 해둬야 혹시 문제가 생겼을 때 사용자에게 더 적절한 상황 전달을 할 수 있다고 생각해서 프로젝트 초반에 세팅하고 시작하는 걸 추천드립니다. 7주차도 수고하셨고, 이제 정말 얼마 안 남았는데 끝까지 파이팅입니다!!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
✅ 워크북 체크리스트
✅ 컨벤션 체크리스트
📌 주안점