-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8주차 미션 / 서버 1조 박지원 #25
Open
david-parkk
wants to merge
18
commits into
Konkuk-KUIT:main
Choose a base branch
from
david-parkk:david-parkk-8week
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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.
안녕하세요 서버 1조 박지원(david-parkk)입니다. 😄
이번주에는 지난주에 구현한 API구현을 리펙토링하는 시간을 가졌습니다. 또한 Validator을 직접 적용하는 시간을 가졌습니다.
미션을 진행하면서 생각해본 내용에 대해 아래 적었습니다
미션 진행도
API
1. 조인 쿼리 👫
NamedParameterJdbcTemplate
에서 지원하는 query에 추가적으로 몇가지 처리를 해줘야했습니다.(List
의 첫번째 element를 반환)ResultSet
내부에서도HashMap
을 선언해서 구현해하는 등 처리 할게 생각보다 많았습니다2. exceptionhandler 🌀
exceptionhandler
를 명시하지 않아도 스프링부트를 실행해보면response
가 생각보다 잘 처리되는 것을 확인할 수 있습니다.exceptionhandler
를 사용하면 예외를 발생시키는 것 만으로도response
를 명세할 수 있게 되는데요exceptionhandler
에 예외에 대한 확인 후 만약 예외가 발생했다면exceptionhandler
가response
에 대한 통제권을 가져와response
를 구성한다고 이해했습니다.(자바에서 예외가 발생하는 것과 비슷한 원리)