puzhibing
2023-07-17 f195cf48cf57635c8848b2bc32afd4541c4090ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cn.mb.cloud.gateway;
 
 
import cn.mb.cloud.common.core.annotation.MBCloudApplication;
import org.springframework.boot.SpringApplication;
import org.springframework.context.annotation.ComponentScan;
 
import javax.annotation.PostConstruct;
import java.util.TimeZone;
 
/**
 * @author jason
 * 网关应用
 */
@MBCloudApplication
@ComponentScan({"cn.mb.cloud"})
public class GatewayApplication {
 
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
 
    @PostConstruct
    void started() {
        TimeZone.setDefault(TimeZone.getTimeZone("GMT+8"));
    }
}