From 5ec3c5716eae3aeea24591900372bde8a7262266 Mon Sep 17 00:00:00 2001 From: BLSKWOLF <76619116+BLSKWOLF@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:32:46 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=8C=BA=E5=AF=BC=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 +++- core/src/main/java/cn/qaiu/vx/core/Deploy.java | 4 ++++ winbuild.bat | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 winbuild.bat diff --git a/.vscode/settings.json b/.vscode/settings.json index 7b016a8..ba2916c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "java.compile.nullAnalysis.mode": "automatic" + "java.compile.nullAnalysis.mode": "automatic", + "cmake.configureOnOpen": false, + "java.configuration.updateBuildConfiguration": "interactive" } \ No newline at end of file diff --git a/core/src/main/java/cn/qaiu/vx/core/Deploy.java b/core/src/main/java/cn/qaiu/vx/core/Deploy.java index c25e5c3..b88cb3d 100644 --- a/core/src/main/java/cn/qaiu/vx/core/Deploy.java +++ b/core/src/main/java/cn/qaiu/vx/core/Deploy.java @@ -15,6 +15,7 @@ import org.slf4j.LoggerFactory; import java.lang.management.ManagementFactory; import java.util.Calendar; import java.util.Date; +import java.util.TimeZone; import java.util.concurrent.locks.LockSupport; import static cn.qaiu.vx.core.util.ConfigConstant.*; @@ -57,6 +58,9 @@ public final class Deploy { path.append("-").append(args[0]); } + // 设置时区 + TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); + // 读取yml配置 ConfigUtil.readYamlConfig(path.toString(), tempVertx) .onSuccess(this::readConf) diff --git a/winbuild.bat b/winbuild.bat new file mode 100644 index 0000000..1adda65 --- /dev/null +++ b/winbuild.bat @@ -0,0 +1,2 @@ +call mvn clean +call mvn package \ No newline at end of file