summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLAPTOP-CUUVN8AS\wk <[email protected]>2022-04-01 14:32:41 +0800
committerLAPTOP-CUUVN8AS\wk <[email protected]>2022-04-01 14:32:41 +0800
commit344856a3df4c9c413a53d150f38844fda000c0f4 (patch)
tree11ea9a67ca9d2a7f143323f326994eb855506471 /src/main
parent453ec5b17ef2385021b12cb25770770869900c15 (diff)
utcs时区设置
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/mesa/reportservice/ReportserviceApplication.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/mesa/reportservice/ReportserviceApplication.java b/src/main/java/com/mesa/reportservice/ReportserviceApplication.java
index a830521..4751d77 100644
--- a/src/main/java/com/mesa/reportservice/ReportserviceApplication.java
+++ b/src/main/java/com/mesa/reportservice/ReportserviceApplication.java
@@ -9,6 +9,8 @@ import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
+import java.util.TimeZone;
+
@ServletComponentScan
@SpringBootApplication
@@ -16,6 +18,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
public class ReportserviceApplication {
public static void main(String[] args) {
+ System.setProperty("jasypt.encryptor.password", "galaxy");
+ System.setProperty("user.timezone", "UTC");
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
SpringApplication.run(ReportserviceApplication.class, args);
}