Conversion of DTO to entity and vice-versa

前端 未结 6 1169

I am using Spring MVC architecture with JPA in my web application. Where to convert data transfer object (DTO) to JPA entity and vice-versa, manua

6条回答
  •  一向
    一向 (楼主)
    2020-12-25 11:59

    Used mapstruct library. Additionally added the following in build.gradle

    sourceSets {
        main.java.srcDirs += "build/generated/sources/annotationProcessor/java/main/"
    }
    

提交回复
热议问题