package com.lantone.qc.kernel;

import com.lantone.qc.kernel.web.config.CustomNameGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableFeignClients
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ComponentScan(nameGenerator = CustomNameGenerator.class, value = {
        "com.lantone.qc.dbanaly",
        "com.lantone.qc.nlp",
        "com.lantone.qc.pub",
        "com.lantone.qc.security",
        "com.lantone.qc.trans",
        "com.lantone.qc.kernel.web",
        "com.lantone.qc.kernel.util",
        "com.lantone.qc.kernel.structure",
        "com.lantone.qc.kernel.client",
        "com.lantone.qc.kernel.analysis",
        "com.lantone.qc.kernel.catalogue.beilun",
        "com.lantone.qc.kernel.catalogue.yiwu",
        "com.lantone.qc.kernel.catalogue.xiamen",
        "com.lantone.qc.kernel.catalogue.ywzxyy",
        "com.lantone.qc.kernel.catalogue.ninghaiyiyi"
})
public class KernelApplication {
    public static void main(String[] args) {
        SpringApplication.run(KernelApplication.class, args);
    }
}