Conversation
kimhanui
approved these changes
Mar 8, 2024
| ``` | ||
|
|
||
| ### MapperImpl | ||
| - MapStruct가 자동으로 생성 |
Contributor
There was a problem hiding this comment.
오호 MemberMapper만 작성해주면 컴파일 시점에 아래 코드가 자동 생성되는 거군요??
혹시 interface 메서드 작성 규칙도 있는 것인지 궁금합니다~
Contributor
|
서버(Java)에서 DTO 매핑해줄 때 반복적&무의미한 코드가 많이 생성돼서 약간의 피로감이 있었는데 요런 라이브러리로 쉽게 해소할 수 있네요~ 유익한 정보 얻어갑니다👍 |
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.
이번에는 라이브러리 MapStruct에 대해 알아봤습니다!
매개 Dto가 많아질수록 반복되는 Converting 코드가 필요한데, 이 라이브러리를 활용하면 더 효율적으로 관리할 수 있을 것 같아요:)
저도 아직 실제로 사용해보진 않았지만 실무에서 많이 사용한다고 해서 기회가 되면 활용해보고자 찾아보게 되었습니다!!
https://github.com/geulsseundang/season1/blob/suzieep/week2/mapstruct.md