SmartServiceApplication.java
1.19 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
package com.glsx.smart;
import lombok.extern.slf4j.Slf4j;
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.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
*/
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@ServletComponentScan
// 使用通用 Mapper 的注解
@MapperScan(basePackages={"com.glsx.smart.dao.mapper"})
public class SmartServiceApplication extends SpringBootServletInitializer {
/**
* 本地启动 ,内嵌tomcat方式
* @param args
*/
public static void main(String[] args) {
SpringApplication.run(SmartServiceApplication.class, args);
log.info("车家智能数据服务启动成功");
}
}