增加mapstruct

This commit is contained in:
2025-07-08 00:19:15 +08:00
parent 23537aa318
commit b18e062603

22
pom.xml
View File

@ -205,6 +205,21 @@
<artifactId>reactor-core</artifactId>
<version>3.2.2.RELEASE</version> <!-- 支持 Java 8 -->
</dependency>
<!-- MapStruct 核心库 -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.5.5.Final</version>
</dependency>
<!-- MapStruct 注解处理器(用于编译期生成实现类) -->
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>1.5.5.Final</version>
<scope>provided</scope>
</dependency>
</dependencies>
<!-- Build Configuration -->
@ -233,6 +248,13 @@
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<annotationProcessorPaths>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>1.5.5.Final</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>