|
@@ -5,6 +5,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
+import java.util.TimeZone;
|
|
|
+
|
|
|
/**
|
|
|
* @author zcj
|
|
|
* @version 0.1
|
|
@@ -14,6 +17,11 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
@EnableFeignClients
|
|
|
public class ManateeApplication {
|
|
|
|
|
|
+ @PostConstruct
|
|
|
+ void started() {
|
|
|
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC+8"));
|
|
|
+ }
|
|
|
+
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(ManateeApplication.class, args);
|
|
|
}
|