SmartServiceApplication.java 1.25 KB
package com.glsx.smart;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
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.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Title: ServiceApplication.java
 * @Description:
 * @author deployer name 
 * @version V1.0  
 * @Company: Didihu.com.cn
 * @Copyright Copyright (c) 2015
 */
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@ServletComponentScan
@ComponentScan("com.glsx.smart")
@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("车家智能数据服务启动成功");
    }

}