ModelMapper - SirajChaudhary/comprehensive-example-on-microservices-using-spring-boot-with-spring-cloud GitHub Wiki
ModelMapper is a simple, intelligent, object mapping library that automatically maps objects to each other (e.g. VO to DTO and vice versa)
Step1: Add modelmapper dependency in pom.xml in every microservice
<!-- modelmapper -->
<dependency>
<groupId>org.modelmapper</groupId>
<artifactId>modelmapper</artifactId>
<version>2.4.4</version>
</dependency>
Step2: Use modelmapper wherever it needed.