package com.tzld.piaoquan.ad.engine.server;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.tzld.piaoquan.ad.engine.commons.score.ScorerUtils;
import com.tzld.piaoquan.recommend.feature.client.FeatureClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * https://github.com/grpc-swagger/grpc-swagger/blob/master/README_CN.md
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class,SecurityAutoConfiguration.class})
@ComponentScan({
        "com.tzld.piaoquan.ad.engine.*",
        "com.tzld.piaoquan.recommend.feature.*",
        "com.tzld.piaoquan.recommend.server.*"
})
@EnableEurekaClient
@EnableAspectJAutoProxy
@EnableScheduling
@EnableApolloConfig
@EnableFeignClients("com.tzld.piaoquan.ad.engine.*")
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
