修改不同时区导致的问题

This commit is contained in:
BLSKWOLF
2023-12-16 11:32:46 +00:00
parent a682d2d876
commit 5ec3c5716e
3 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
{
"java.compile.nullAnalysis.mode": "automatic"
"java.compile.nullAnalysis.mode": "automatic",
"cmake.configureOnOpen": false,
"java.configuration.updateBuildConfiguration": "interactive"
}

View File

@@ -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)

2
winbuild.bat Normal file
View File

@@ -0,0 +1,2 @@
call mvn clean
call mvn package