package com.ho.business;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 业务中心启动类
 */
@SpringBootApplication(scanBasePackages = {"com.ho.common", "com.ho.business"})
@MapperScan(basePackages = "com.ho.business.mapper")
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients(basePackages = {"com.ho.business.feignclient"})
@EnableAsync //开启异步
@EnableCaching
public class BusinessApplication {
    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
    }
}
