TJCementApplication.java 851 Bytes
Newer Older
1 2 3 4 5 6
package cn.wise.sc.cement.business;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
7
import org.springframework.scheduling.annotation.EnableScheduling;
8 9 10 11 12 13 14
import org.springframework.web.client.RestTemplate;

import java.util.TimeZone;

/**
 * 启动类
 *
mengbali153's avatar
mengbali153 committed
15
 * @author zhutianwei
16 17
 */
@SpringBootApplication
18
@EnableScheduling
19 20 21 22 23 24 25 26 27 28
@MapperScan("cn.wise.sc.cement.business.mapper")
public class TJCementApplication {

	public static void main(String[] args) {
		// 系统默认的时区
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
		SpringApplication.run(TJCementApplication.class, args);
	}

	@Bean
mengbali153's avatar
mengbali153 committed
29
	public RestTemplate restTemplate() {
30 31 32 33
		return new RestTemplate();
	}

}