package com.emotion;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 情感博物馆简化版启动类
 *
 * @author huazhongmin
 * @date 2025-07-21
 */
@SpringBootApplication
@MapperScan("com.emotion.mapper")
public class EmotionSimpleApplication {

    public static void main(String[] args) {
        System.setProperty("spring.profiles.active", 
            System.getProperty("spring.profiles.active", "local"));
        
        SpringApplication.run(EmotionSimpleApplication.class, args);
        
        System.out.println("========================================");
        System.out.println("🎉 情感博物馆服务启动成功！");
        System.out.println("📋 服务信息:");
        System.out.println("  - 服务名称: backend-single");
        System.out.println("  - 服务端口: 19089");
        System.out.println("  - 环境配置: " + System.getProperty("spring.profiles.active"));
        System.out.println("  - API文档: http://localhost:19089/api/health");
        System.out.println("========================================");
    }
}
