fix:lombok版本以及mapstruct
This commit is contained in:
23
pom.xml
23
pom.xml
@@ -24,7 +24,6 @@
|
||||
<mybatis.spring.boot.version>2.2.2</mybatis.spring.boot.version>
|
||||
<rocketmq.version>5.1.4</rocketmq.version>
|
||||
<mysql.version>8.0.33</mysql.version>
|
||||
<lombok.version>1.18.30</lombok.version>
|
||||
<fastjson2.version>2.0.51</fastjson2.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||
@@ -145,6 +144,11 @@
|
||||
<artifactId>pagehelper</artifactId>
|
||||
<version>5.3.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct</artifactId>
|
||||
<version>1.5.5.Final</version>
|
||||
</dependency>
|
||||
|
||||
<!-- http -->
|
||||
<dependency>
|
||||
@@ -191,6 +195,7 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- 统一 compiler 插件 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
@@ -200,9 +205,25 @@
|
||||
<target>${java.version}</target>
|
||||
<encoding>${encoding}</encoding>
|
||||
<parameters>true</parameters>
|
||||
<annotationProcessorPaths>
|
||||
<!-- Lombok -->
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.30</version>
|
||||
</path>
|
||||
<!-- MapStruct -->
|
||||
<path>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct-processor</artifactId>
|
||||
<version>1.5.5.Final</version>
|
||||
</path>
|
||||
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- spring boot 插件 -->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.xiang.xservice.basic.common.req;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@@ -29,5 +31,7 @@ public class BaseRequest {
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime dateTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user