package cn.superdesk.uniorder.openapicall;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitScan;
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2021/5/27 下午3:30
 * @UpdateUser: linjinyu
 * @UpdateDate: 2021/5/27 下午3:30
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@EnableKnife4j
//@EnableAsync
@ComponentScan(value = {
		"cn.superdesk.uniorder",
		"cn.superdesk.uniorder.openapicall"
})
@RetrofitScan(value = {
		"cn.superdesk.uniorder.openapicall",
		"cn.superdesk.uniorder.openapicall.superdeskapp",
		"cn.superdesk.uniorder.openapicall.superdeskmall",
		"cn.superdesk.uniorder.openapicall.superdeskuniorder",
		"cn.superdesk.uniorder.openapicall.thirdpart.szhtxx.electronicInvoice"
})
public class OpenApiCallApplication {

	public static void main(String[] args) {
		SpringApplication.run(OpenApiCallApplication.class, args);
	}

	@PostConstruct
	void setDefaultTimezone() {
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
	}
}