From 52d38e61813a28ceb1e4fc1de65763f078f1e5de Mon Sep 17 00:00:00 2001 From: luo <2855143437@qq.com> Date: 星期五, 23 二月 2024 14:19:16 +0800 Subject: [PATCH] 2.23 --- ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java b/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java index e3b45f4..14017f5 100644 --- a/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java +++ b/ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/GunsApplication.java @@ -14,7 +14,9 @@ import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.web.client.RestTemplate; +import javax.annotation.PostConstruct; import java.nio.charset.StandardCharsets; +import java.util.TimeZone; /** * SpringBoot方式启动类 @@ -33,6 +35,14 @@ logger.info("GunsApplication is success!"); } + +// @PostConstruct +// void started() { +// TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); +// } + + + @Bean //通过ip地址调用 public RestTemplate restTemplate() { PoolingHttpClientConnectionManager connectionManager = new PoolingHttpClientConnectionManager(); -- Gitblit v1.7.1