package com.winsun;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.winsun.item.core.common.constant.Const;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * SpringBoot方式启动类
 *
 * @author winsun
 * @Date 2017/5/21 12:06
 */
@EnableEurekaClient
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@EnableCaching
@RefreshScope
@EnableFeignClients
@MapperScan(basePackages = {"com.winsun.item.modular.*.dao","com.winsun.mapper"})
public class WinsunCoreServiceApplication {

    private final static Logger logger = LoggerFactory.getLogger(WinsunCoreServiceApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(WinsunCoreServiceApplication.class, args);
        logger.info("{} is success!", WinsunCoreServiceApplication.class.getName());
    }
}
