SmartServiceApplication.java
1.47 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cn.com.glsx;
import com.glsx.plat.context.EnableRestAdmin;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;
/**
* @Title: ServiceApplication.java
* @Description:
* @author deployer name
* @version V1.0
* @Company: Didihu.com.cn
* @Copyright Copyright (c) 2015
* 项目代号:10
*/
@Slf4j
@EnableRestAdmin
@EnableDubbo
@SpringBootApplication(scanBasePackages = {"cn.com.glsx"})
@EnableDiscoveryClient
@EnableFeignClients("cn.com.glsx.smart.modules.client")
@EnableTransactionManagement
@ServletComponentScan
@MapperScan(basePackages={"cn.com.glsx.smart.modules.mapper"})
public class SmartServiceApplication extends SpringBootServletInitializer {
/**
* 本地启动 ,内嵌tomcat方式
* @param args
*/
public static void main(String[] args) {
SpringApplication.run(SmartServiceApplication.class, args);
log.info("车家智能数据服务启动成功");
}
}