package com.kt.event.content.infra;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * Content Service Application
 */
@SpringBootApplication(scanBasePackages = {
        "com.kt.event.content",
        "com.kt.event.common"
})
@EntityScan(basePackages = {
        "com.kt.event.content.infra.gateway.entity",
        "com.kt.event.common.entity"
})
@EnableJpaRepositories(basePackages = "com.kt.event.content.infra.gateway.repository")
@EnableJpaAuditing
@EnableAsync
public class ContentApplication {

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