Skip to content

[2월] mapstruct#14

Open
suzieep wants to merge 2 commits intomainfrom
suzieep
Open

[2월] mapstruct#14
suzieep wants to merge 2 commits intomainfrom
suzieep

Conversation

@suzieep
Copy link
Contributor

@suzieep suzieep commented Feb 15, 2024

이번에는 라이브러리 MapStruct에 대해 알아봤습니다!
매개 Dto가 많아질수록 반복되는 Converting 코드가 필요한데, 이 라이브러리를 활용하면 더 효율적으로 관리할 수 있을 것 같아요:)
저도 아직 실제로 사용해보진 않았지만 실무에서 많이 사용한다고 해서 기회가 되면 활용해보고자 찾아보게 되었습니다!!

https://github.com/geulsseundang/season1/blob/suzieep/week2/mapstruct.md

@suzieep suzieep changed the title [week2] mapstruct 초안 [2월] mapstruct Feb 26, 2024
```

### MapperImpl
- MapStruct가 자동으로 생성
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 MemberMapper만 작성해주면 컴파일 시점에 아래 코드가 자동 생성되는 거군요??
혹시 interface 메서드 작성 규칙도 있는 것인지 궁금합니다~

@kimhanui
Copy link
Contributor

kimhanui commented Mar 8, 2024

서버(Java)에서 DTO 매핑해줄 때 반복적&무의미한 코드가 많이 생성돼서 약간의 피로감이 있었는데 요런 라이브러리로 쉽게 해소할 수 있네요~ 유익한 정보 얻어갑니다👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants