package com.kt.event.analytics;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Analytics Service 애플리케이션 메인 클래스
 *
 * 실시간 효과 측정 및 통합 대시보드를 제공하는 Analytics Service
 */
@SpringBootApplication(scanBasePackages = {"com.kt.event.analytics", "com.kt.event.common"})
@EntityScan(basePackages = {"com.kt.event.analytics.entity", "com.kt.event.common.entity"})
@EnableJpaRepositories(basePackages = "com.kt.event.analytics.repository")
@EnableJpaAuditing
@EnableFeignClients
@EnableKafka
@EnableScheduling
public class AnalyticsServiceApplication {

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