ソースを参照

fix

Signed-off-by: AE86 <836391306@qq.com>
AE86 2 年 前
コミット
1076788dfe
2 ファイル変更4 行追加3 行削除
  1. 1 0
      README.md
  2. 3 3
      dbsyncer-web/src/main/java/org/dbsyncer/web/Application.java

+ 1 - 0
README.md

@@ -157,6 +157,7 @@ $ ./build.sh
 * MySQL无法连接。默认使用的驱动版本为5.1.40,如果为mysql8需要手动替换驱动 [mysql-connector-java-8.0.21.jar](https://gitee.com/ghi/dbsyncer/attach_files) 
 * SQLServer无法连接。案例:[驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“The server selected protocol version TLS10 is not accepted by client preferences [TLS12]”](https://gitee.com/ghi/dbsyncer/issues/I4PL46?from=project-issue) 
 * 同步数据乱码。案例:[mysql8表导入sqlserver2008R2后,sqlserver表nvarchar字段内容为乱码](https://gitee.com/ghi/dbsyncer/issues/I4JXY0) 
+* [如何开启远程debug模式?](https://gitee.com/ghi/dbsyncer/issues/I63F6R) 
 * 有其他问题、建议或需求(如想支持某中间件,记得补充使用的版本号),欢迎大家提[【issuses】](https://gitee.com/ghi/dbsyncer/issues/new?issue%5Bassignee_id%5D=0&issue%5Bmilestone_id%5D=0)!
 
 ## 🏆性能测试

+ 3 - 3
dbsyncer-web/src/main/java/org/dbsyncer/web/Application.java

@@ -14,6 +14,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 
 import java.io.IOException;
 import java.sql.Timestamp;
+import java.time.ZoneId;
 import java.util.Properties;
 
 @EnableAsync
@@ -35,9 +36,8 @@ public class Application {
         if (location.exists()) {
             BuildProperties build = new BuildProperties(loadFrom(location, "build"));
             version = build.getVersion();
-            long time = build.getTime().toEpochMilli();
-            String format = DateFormatUtil.timestampToString(new Timestamp(time));
-            properties.put("info.app.build.time", format);
+            String buildTime = build.getTime().atZone(ZoneId.systemDefault()).format(DateFormatUtil.CHINESE_STANDARD_TIME_FORMATTER);
+            properties.put("info.app.build.time", buildTime);
         }
         properties.put("info.app.version", version);
         properties.put("spring.thymeleaf.prefix", "classpath:/public/");