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+7"));
|
}
|
}
|