Browse Source

fix: 修复时区问题

weijianghai 2 years ago
parent
commit
00593b6fbb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/resources/application.yml

+ 2 - 0
src/main/resources/application.yml

@@ -9,6 +9,8 @@ server:
 spring:
 spring:
   profiles:
   profiles:
     active: dev
     active: dev
+  jackson:
+    time-zone: Asia/Shanghai
   thymeleaf:
   thymeleaf:
     prefix: classpath:/templates/
     prefix: classpath:/templates/
     mode: HTML
     mode: HTML