package com.ho.datacollect;

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;

/**
 * @author fancl
 * @description: 数据采集
 * @date 2022/8/9
 */
@SpringBootApplication(scanBasePackages = {"com.ho.common.tools", "com.ho.datacollect","com.ho.business","com.ho.flow"})
@EnableDiscoveryClient
//连的是business数据库
@MapperScan(basePackages = "com.ho.business.mapper")
@EnableFeignClients(basePackages = {"com.ho.business.feignclient", "com.ho.datacollect.feignclient"})
@EnableAsync //开启异步
@EnableCaching
public class DataCollectApplication {
    public static void main(String[] args) {
        SpringApplication.run(DataCollectApplication.class,args);
    }
}
