-
Notifications
You must be signed in to change notification settings - Fork 72
12월 백엔드 포스트 #258
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
12월 백엔드 포스트 #258
Conversation
|
|
||
| ### HandlerMethodArgumentResolver | ||
|
|
||
| 가장 핵심이 되는 인터페이스는 `HandlerMethodArgumentResolver` 이다. 해당 인터페이스는 두가지 method의 구현을 필요로 한다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Nit] 두가지 -> 2 가지로 수정하시면 가독성이 더욱 좋을 것 같습니다.
| class UserArgumentResolverConfiguration( | ||
| private val userResolver: UserResolver, | ||
| ) : WebMvcConfigurer { | ||
| override fun addArgumentResolvers(resolvers:MutableList<HandlerMethodArgumentResolver>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun과 addArgument 사이에 불필요한 공백이 있어 수정 부탁드립니다.
iju1633
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
글을 읽으며 객체 파라미터를 주입받는 방법 중, 잘 몰랐던 handler나 resolver에 대해서도 어떻게 작동하는 지 알 수 있었네요! 좋은 글 감사합니다 :)
seunghb320
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앞서 말씀해주신 부분 외에는 저는 수정 관련해서는 딱히 요청할게 없습니다. 좋은 글 정말 감사드립니다:)
iju1633
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
No description provided.