|
|
@@ -6,6 +6,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.scheduling.annotation.EnableAsync;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
+import java.util.TimeZone;
|
|
|
+
|
|
|
@EnableAsync
|
|
|
@EnableScheduling
|
|
|
@MapperScan("com.mokamrp.privates.mapper")
|
|
|
@@ -14,4 +17,9 @@ public class PrivateServerStart {
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(PrivateServerStart.class, args);
|
|
|
}
|
|
|
+
|
|
|
+ @PostConstruct
|
|
|
+ void started() {
|
|
|
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
|
|
|
+ }
|
|
|
}
|