refactor(time): 统一时间格式化为 yyyy-MM-dd HH:mm:ss
- 在多个实体类中添加 @JsonFormat 注解,统一 LocalDateTime 类型字段的时间格式 - 移除 JacksonConfig 中自定义的时间格式化配置,使用默认的 ISO 日期时间格式
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -45,6 +45,12 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Jackson JSR310 support for Java 8 time -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- spring-boot-aop -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
Reference in New Issue
Block a user