最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Is this enough for mapstruct working in Spring Boot? - Stack Overflow

programmeradmin6浏览0评论

Is the following enough to make work for map struct? When I tried to implement mapstruct dto was not working. How can I identify the issue? I want to integrate into Spring Boot pom.xml file as below.

    <plugin>
               <groupId>.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <version>3.12.1</version>
               <configuration>
                   <source>${java.version}</source>
                   <target>${java.version}</target>
                   <annotationProcessorPaths>
                       <path>
                           <groupId>.projectlombok</groupId>
                           <artifactId>lombok</artifactId>
                           <version>1.16.18</version>
                       </path>
                       <!-- This is needed when using Lombok 1.18.16 and above -->
                       <path>
                           <groupId>.projectlombok</groupId>
                           <artifactId>lombok-mapstruct-binding</artifactId>
                           <version>0.2.0</version>
                       </path>
                       <!-- Mapstruct should follow the lombok path(s) -->
                       <path>
                           <groupId>.mapstruct</groupId>
                           <artifactId>mapstruct-processor</artifactId>
                           <version>1.6.2</version>
                       </path>
                   </annotationProcessorPaths>
                   <compilerArgs>
                       <compilerArg>
                           -Amapstruct.defaultComponentModel=spring
                       </compilerArg>
                   </compilerArgs>
               </configuration>
           </plugin>
发布评论

评论列表(0)

  1. 暂无评论