2
0

feat: 添加mapstruct

This commit is contained in:
caiyuchao
2024-12-31 14:08:16 +08:00
parent 12f8d5076d
commit c96fb94625
2 changed files with 27 additions and 1 deletions

22
pom.xml
View File

@@ -37,6 +37,7 @@
<hutool.version>5.8.33</hutool.version>
<lombok.version>1.18.36</lombok.version>
<swagger.core.version>1.6.2</swagger.core.version>
<org.mapstruct.version>1.6.3</org.mapstruct.version>
<mail.version>1.6.2</mail.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<wfc.nacos.server>${env.NACOS_SERVER_NAME}</wfc.nacos.server>
@@ -293,6 +294,13 @@
<version>${wfc.version}</version>
</dependency>
<!-- MapStruct -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<!-- 系统接口 -->
<dependency>
<groupId>org.wfc</groupId>
@@ -358,6 +366,18 @@
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
@@ -464,7 +484,7 @@
<properties>
<!--当前环境-->
<profileName>cyc</profileName>
<nacosServerAddr>192.168.2.248:8848</nacosServerAddr>
<nacosServerAddr>192.168.9.50:8848</nacosServerAddr>
<nacosNamespace>wfc-cyc</nacosNamespace>
</properties>
</profile>

View File

@@ -92,6 +92,12 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- mapstruct -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
</dependency>
</dependencies>
<build>