카테고리 없음
@Mapper MapStruct Guide
sy89
2020. 4. 15. 20:29
Controller 에서 @RequestBody로 넘어온 객체를 좀 더 간편하게 DTO 로 변환할 수 있는 방법을 고민하다가 만난 Mapper 가이드!
https://mapstruct.org/documentation/stable/reference/html/#basic-mappings
MapStruct 1.3.1.Final Reference Guide
The mapping of collection types (List, Set etc.) is done in the same way as mapping bean types, i.e. by defining mapping methods with the required source and target types in a mapper interface. MapStruct supports a wide range of iterable types from the Jav
mapstruct.org