package com.ihooyah.modules.system;

import com.ihooyah.cache.EnableIhooyahCache;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 描述
 *
 * @author fatiaojie
 * @date 2020/3/31 19:37
 */
@EnableDiscoveryClient
@EnableCircuitBreaker
@SpringBootApplication
@EnableScheduling
@EnableIhooyahCache
@EnableTransactionManagement
@EnableFeignClients("com.ihooyah.modules.inteface.feign")
@MapperScan("com.ihooyah.modules.system.mapper")
@EnableSwagger2Doc
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
    }
}
