package com.stdproject;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Spring Boot 应用启动类
 * 
 * @author StdProject
 * @since 2023-12-07
 */
@SpringBootApplication
@MapperScan("com.stdproject.mapper")
@EnableCaching
@EnableAsync
@EnableTransactionManagement
public class ProjectApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProjectApplication.class, args);
        System.out.println("\n========================================");
        System.out.println("  StdProject 应用启动成功！");
        System.out.println("  接口文档地址: http://localhost:8080/swagger-ui.html");
        System.out.println("  应用端口: 8080");
        System.out.println("========================================\n");
    }

}