Post link: https://www.facebook.com/groups/jugbd/posts/3282022541844408/
Muhammad Shakhawat Hossain Safat: I recommend Mapstruct. Few good reasons to choose Mapstruct over other converters –
- Good performance: Traditional converters are XML config and reflection based. Mapstruct generates the implementation during compile time. So, its performance is the same as hand-crafted converters.
- Clean and concise code: It’s annotation-based. You need to define a mapper interface and the necessary annotations.
- Extensible: Easy to add a custom conversion logic.
- Growing community: There are many good resources to learn to help debug.