MapStruct - Java Mapper
MapStruct is a Java Bean Mapper.
It contains functions that automatically maps between two Java functions. We only need to create the interface
, and the library will automatically create a concrete implementation.
Implementation
config
pom.xml
modifications for maven
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.3.1.Final</version>
</dependency>