[Refactor] Interceptor를 활용해 서버 응답 포멧 통일 #141
Merged
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.
관련 이슈 번호
close #136
작업 내용
고민과 학습내용
어노테이션
@ResponseStatus
- 성공 했을 때 대부분200
인 경우가 많아200
을 디폴트로 설정했습니다.200
이 반환됩니다.@ResponseStatus
- 마찬가지로 사용하지 않았을 경우'요청이 성공적으로 처리되었습니다.'
라는 메시지가 반환됩니다.사용 예시
추가 변경 사항
common/interceptor/
로 옮겼습니다. (Interceptor끼리 모아두기 위함)스크린샷
변경 이후에도 이전과 동일한 포멧으로 응답하는 것을 확인했습니다.