package com.dne.ems;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * EMS系统主启动类
 *
 * <p>核心配置：
 * <ul>
 *   <li>@SpringBootApplication - 启用Spring Boot自动配置，排除数据库相关配置</li>
 *   <li>@ComponentScan - 扫描com.dne.ems包下的组件</li>
 *   <li>@EnableAsync - 启用异步处理</li>
 * </ul>
 *
 * @author DNE开发团队
 * @version 1.0
 * @since 2025-06
 */
@SpringBootApplication(exclude = {
    DataSourceAutoConfiguration.class,
    HibernateJpaAutoConfiguration.class
})
@ComponentScan(basePackages = "com.dne.ems")
@EnableAsync
public class EmsBackendApplication {

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

}
